|
@@ -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;
|
|
|
|
|
|
/**
|
|
@@ -127,9 +128,12 @@ 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()));
|
|
|
}
|
|
|
|
|
|
|