|
@@ -37,7 +37,7 @@ import java.util.Map;
|
|
|
@RestController
|
|
@RestController
|
|
|
@Api(tags = "【入库】")
|
|
@Api(tags = "【入库】")
|
|
|
@RequestMapping("/bottleStorage")
|
|
@RequestMapping("/bottleStorage")
|
|
|
-public class BottleStorageController extends BaseController {
|
|
|
|
|
|
|
+public class BottleStorageController extends BaseController<BottleStorage> {
|
|
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
|
private BottleStorageService bottleStorageService;
|
|
private BottleStorageService bottleStorageService;
|
|
@@ -48,12 +48,11 @@ public class BottleStorageController extends BaseController {
|
|
|
/**
|
|
/**
|
|
|
* 查询入库记录列表
|
|
* 查询入库记录列表
|
|
|
*/
|
|
*/
|
|
|
- //@PreAuthorize(hasPermi = "bottle:bottleStorage:list")
|
|
|
|
|
@PreAuthorize(hasPermi = PerPrefix.BOTTLE_BOTTLESTORAGE + PerFun.LIST)
|
|
@PreAuthorize(hasPermi = PerPrefix.BOTTLE_BOTTLESTORAGE + PerFun.LIST)
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
@ApiOperation(value = "查询报警记录列表")
|
|
@ApiOperation(value = "查询报警记录列表")
|
|
|
- public TableDataInfo<BottleStorageVo> list(BottleStorageVo vo) {
|
|
|
|
|
- // List<BottleStorage> list = bottleStorageService.list(new LambdaQueryWrapper<>(bottleStorage));
|
|
|
|
|
|
|
+ public TableDataInfo<BottleStorage> list(BottleStorageVo vo) {
|
|
|
|
|
+ startPage("create_time","descending");
|
|
|
List<BottleStorageVo> list = bottleStorageService.getListVo(vo);
|
|
List<BottleStorageVo> list = bottleStorageService.getListVo(vo);
|
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
|
}
|
|
}
|
|
@@ -65,7 +64,6 @@ public class BottleStorageController extends BaseController {
|
|
|
* @return Boolean
|
|
* @return Boolean
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation(value = "新增入库信息")
|
|
@ApiOperation(value = "新增入库信息")
|
|
|
- //@PreAuthorize(hasPermi = "bottle:bottleStorage:add")
|
|
|
|
|
@PreAuthorize(hasPermi = PerPrefix.BOTTLE_BOTTLESTORAGE + PerFun.ADD)
|
|
@PreAuthorize(hasPermi = PerPrefix.BOTTLE_BOTTLESTORAGE + PerFun.ADD)
|
|
|
@Log(title = "新增入库信息", businessType = BusinessType.INSERT)
|
|
@Log(title = "新增入库信息", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
@PostMapping
|
|
@@ -80,7 +78,6 @@ public class BottleStorageController extends BaseController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation(value = "入库详情")
|
|
@ApiOperation(value = "入库详情")
|
|
|
- //@PreAuthorize(hasPermi = "bottle:bottleStorage:query")
|
|
|
|
|
@PreAuthorize(hasPermi = PerPrefix.BOTTLE_BOTTLESTORAGE + PerFun.QUERY)
|
|
@PreAuthorize(hasPermi = PerPrefix.BOTTLE_BOTTLESTORAGE + PerFun.QUERY)
|
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|