|
@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -122,14 +123,17 @@ public class TaskInfoController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查找登录用户参与的审批已完成的任务
|
|
|
+ * 查询登录用户已完成的任务(指定项目)
|
|
|
*
|
|
|
* @return ResMsg
|
|
|
*/
|
|
|
@RequestMapping("/findTaskIsFinish")
|
|
|
- public ResMsg findTaskIsFinish() {
|
|
|
+ public ResMsg findTaskIsFinish(@RequestBody TaskInfoVo taskInfoVo) {
|
|
|
String userId = TokenData.takeFromRequest().getUserId();
|
|
|
- return taskInfoApi.findTaskIsFinish(userId, Integer.parseInt(TaskStatus.FINISH_ED.getCode()));
|
|
|
+ taskInfoVo.setTaskParticipant(new ArrayList<Long>() {{
|
|
|
+ add(Long.valueOf(userId));
|
|
|
+ }});
|
|
|
+ return taskInfoApi.findTaskIsFinish(taskInfoVo, Integer.parseInt(TaskStatus.FINISH_ED.getCode()));
|
|
|
}
|
|
|
|
|
|
|