|
@@ -767,17 +767,22 @@ public class TaskController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/getRecentTask")
|
|
|
- public HttpRespMsg getRecentTask(Integer projectId,
|
|
|
+ public HttpRespMsg getRecentTask(Integer projectId, String userId,
|
|
|
@RequestParam(required = false, defaultValue = "0") Integer isSubstitude, String stage, Integer groupId) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
- String userId = request.getHeader("Token");
|
|
|
- if (isSubstitude == 0) {
|
|
|
- msg.data = taskMapper.recentSimpleList(projectId, userId, stage, groupId);
|
|
|
- } else {
|
|
|
- //代填的情况,获取的是项目中的所有任务
|
|
|
- msg.data = taskMapper.recentSimpleList(projectId, null, stage, groupId);
|
|
|
+ if (isSubstitude == 0 || userId == null) {
|
|
|
+ userId = request.getHeader("Token");
|
|
|
}
|
|
|
|
|
|
+ msg.data = taskMapper.recentSimpleList(projectId, userId, stage, groupId);
|
|
|
+
|
|
|
+// if (isSubstitude == 0) {
|
|
|
+// msg.data = taskMapper.recentSimpleList(projectId, userId, stage, groupId);
|
|
|
+// } else {
|
|
|
+// //代填的情况,获取的是项目中的所有任务
|
|
|
+// msg.data = taskMapper.recentSimpleList(projectId, null, stage, groupId);
|
|
|
+// }
|
|
|
+
|
|
|
return msg;
|
|
|
}
|
|
|
|