From 441457439e5f4c173a830ff1d434b19a59f30b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BB=BA=E8=B6=85?= <3182967682@qq.com> Date: Wed, 14 Oct 2020 15:39:01 +0800 Subject: [PATCH] fix --- .../performance/controller/TaskController.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/lz/modules/performance/controller/TaskController.java b/src/main/java/com/lz/modules/performance/controller/TaskController.java index 7ccc0d5a..87c69b47 100644 --- a/src/main/java/com/lz/modules/performance/controller/TaskController.java +++ b/src/main/java/com/lz/modules/performance/controller/TaskController.java @@ -16,11 +16,13 @@ import com.lz.modules.performance.req.AssessListReq; import com.lz.modules.performance.req.AssessTaskReq; import com.lz.modules.performance.res.ChartStatisticalRes; import com.lz.modules.performance.res.TaskListRes; +import com.lz.modules.performance.service.AssessTaskService; import com.lz.modules.sys.controller.AbstractController; import com.lz.modules.sys.entity.app.ResultRecord; import com.lz.modules.sys.service.app.ResultRecordService; import io.swagger.annotations.*; import org.apache.commons.collections.CollectionUtils; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -39,21 +41,15 @@ import java.util.function.Consumer; @RequestMapping("/performance") @Api(value="任务事项", tags={"任务相关接口"}) public class TaskController extends AbstractController{ - - private FlowRecordService flowRecordService; - - private ResultRecordService resultRecordService; - - private StaffService staffService; - - private FlowChangeService flowChangeService; + @Autowired + private AssessTaskService assessTaskService; @RequestMapping("task/list") @ApiOperation("获取待办/处理事项") @ApiImplicitParam(name = "status",value = "状态 (0:待办 1:已处理)", required = true, dataType = "int",paramType = "query") @ApiResponses({@ApiResponse(code = 200,message = "成功",response = TaskListRes.class)}) public R list(AssessTaskReq req){ - + assessTaskService.assessTaskList(req,getUserId()); return R.ok().put("page",""); }