Commit a1c4a559 authored by 夏东伟's avatar 夏东伟

基础信息增加search code

parent 16d377cb
...@@ -28,7 +28,7 @@ public class BasicInfoController { ...@@ -28,7 +28,7 @@ public class BasicInfoController {
@Autowired @Autowired
BasicInfoService basicInfoService; BasicInfoService basicInfoService;
@ApiOperation(value = "分页查询设备列表") @ApiOperation(value = "分页查询设备列表", notes = "使用通用搜索组件,searchCode:SCADA_EQUIP_INFO")
@PostMapping("/equip/page") @PostMapping("/equip/page")
public Return pageListEquip(@RequestBody SearchVo pageFilter) { public Return pageListEquip(@RequestBody SearchVo pageFilter) {
return Return.success(new PageInfo<>(basicInfoService.findPageEquip(pageFilter.toJSONObject()))); return Return.success(new PageInfo<>(basicInfoService.findPageEquip(pageFilter.toJSONObject())));
...@@ -62,7 +62,7 @@ public class BasicInfoController { ...@@ -62,7 +62,7 @@ public class BasicInfoController {
return Return.success(); return Return.success();
} }
@ApiOperation(value = "分页查询工位列表") @ApiOperation(value = "分页查询工位列表", notes = "使用通用搜索组件,searchCode:PAINTSHOP_STATION")
@PostMapping("/station/page") @PostMapping("/station/page")
public Return pageListStation(@RequestBody SearchVo pageFilter) { public Return pageListStation(@RequestBody SearchVo pageFilter) {
return Return.success(new PageInfo<>(basicInfoService.findPageStation(pageFilter.toJSONObject()))); return Return.success(new PageInfo<>(basicInfoService.findPageStation(pageFilter.toJSONObject())));
......
...@@ -26,13 +26,13 @@ public class RunRecordController { ...@@ -26,13 +26,13 @@ public class RunRecordController {
@Autowired @Autowired
private RunRecordService runRecordService; private RunRecordService runRecordService;
@ApiOperation(value = "运行时间列表(分页查询)") @ApiOperation(value = "运行时间列表(分页查询)", notes = "使用通用搜索组件,searchCode:MACHINE_RUNTIME_RECORD")
@PostMapping("/runtime/page") @PostMapping("/runtime/page")
public Return pageListRuntime(@RequestBody SearchVo pageFilter) { public Return pageListRuntime(@RequestBody SearchVo pageFilter) {
return Return.success(new PageInfo<>(runRecordService.findPageRunTime(pageFilter.toJSONObject()))); return Return.success(new PageInfo<>(runRecordService.findPageRunTime(pageFilter.toJSONObject())));
} }
@ApiOperation(value = "故障信息列表(分页查询)") @ApiOperation(value = "故障信息列表(分页查询)", notes = "使用通用搜索组件,searchCode:MACHINE_WARNING_RECORD")
@PostMapping("/fault/page") @PostMapping("/fault/page")
public Return pageListFault(@RequestBody SearchVo pageFilter) { public Return pageListFault(@RequestBody SearchVo pageFilter) {
return Return.success(new PageInfo<>(runRecordService.findPageFault(pageFilter.toJSONObject()))); return Return.success(new PageInfo<>(runRecordService.findPageFault(pageFilter.toJSONObject())));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment