|
@@ -1,8 +1,10 @@
|
|
package com.qmth.sop.server.api;
|
|
package com.qmth.sop.server.api;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.sop.business.bean.result.WorkTaskResult;
|
|
import com.qmth.sop.business.bean.result.WorkTaskResult;
|
|
|
|
+import com.qmth.sop.business.service.TBDelayWarnService;
|
|
import com.qmth.sop.common.contant.SystemConstant;
|
|
import com.qmth.sop.common.contant.SystemConstant;
|
|
import com.qmth.sop.common.enums.WarnTypeEnum;
|
|
import com.qmth.sop.common.enums.WarnTypeEnum;
|
|
import com.qmth.sop.common.util.Result;
|
|
import com.qmth.sop.common.util.Result;
|
|
@@ -33,15 +35,18 @@ import javax.validation.constraints.Min;
|
|
public class MyWorkBenchController {
|
|
public class MyWorkBenchController {
|
|
private final static Logger log = LoggerFactory.getLogger(MyWorkBenchController.class);
|
|
private final static Logger log = LoggerFactory.getLogger(MyWorkBenchController.class);
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TBDelayWarnService tbDelayWarnService;
|
|
|
|
+
|
|
@ApiOperation(value = "获取违规/延期预警待办接口")
|
|
@ApiOperation(value = "获取违规/延期预警待办接口")
|
|
@RequestMapping(value = "/warn/list", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/warn/list", method = RequestMethod.POST)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = WorkTaskResult.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = WorkTaskResult.class)})
|
|
- public Result getFlowTaskList(@ApiParam(value = "用户id") @RequestParam(required = false) Long userId,
|
|
|
|
|
|
+ public Result getWarnTaskList(@ApiParam(value = "用户id") @RequestParam(required = false) Long userId,
|
|
@ApiParam(value = "预警类型") @RequestParam(required = false) WarnTypeEnum type,
|
|
@ApiParam(value = "预警类型") @RequestParam(required = false) WarnTypeEnum type,
|
|
@ApiParam(value = "服务单元id") @RequestParam(required = false) Long serviceId,
|
|
@ApiParam(value = "服务单元id") @RequestParam(required = false) Long serviceId,
|
|
@ApiParam(value = "客户名称") @RequestParam(required = false) String customName,
|
|
@ApiParam(value = "客户名称") @RequestParam(required = false) String customName,
|
|
@ApiParam(value = "页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
@ApiParam(value = "页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
@ApiParam(value = "页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
@ApiParam(value = "页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
- return ResultUtil.ok();
|
|
|
|
|
|
+ return ResultUtil.ok(tbDelayWarnService.getWarnTaskList(new Page<>(pageNumber, pageSize), userId, type, serviceId, customName));
|
|
}
|
|
}
|
|
}
|
|
}
|