|
@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -127,9 +128,12 @@ public class TaskInfoController {
|
|
* @return ResMsg
|
|
* @return ResMsg
|
|
*/
|
|
*/
|
|
@RequestMapping("/findTaskIsFinish")
|
|
@RequestMapping("/findTaskIsFinish")
|
|
- public ResMsg findTaskIsFinish() {
|
|
|
|
|
|
+ public ResMsg findTaskIsFinish(@RequestBody TaskInfoVo taskInfoVo) {
|
|
String userId = TokenData.takeFromRequest().getUserId();
|
|
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()));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|