weicd
2023-09-28 d0c51ac702c57f2cae84a8d879a5b605f2dab630
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/rest/TaskUserController.java
@@ -15,6 +15,7 @@
*/
package me.zhengjie.modules.task.rest;
import com.alipay.api.domain.ObjectKeyWord;
import me.zhengjie.annotation.Log;
import me.zhengjie.modules.task.domain.TaskUserMongo;
import me.zhengjie.modules.task.service.TaskUserService;
@@ -150,8 +151,8 @@
    @GetMapping("/getAllTaskUser")
    @Log("先将所有的分配任务都缓存起来")
    public ResponseEntity<Object> getAllTaskUser(){
        return new ResponseEntity<>(taskUserService.getAllTaskUser(SecurityUtils.getCurrentUserId()),HttpStatus.OK);
    public ResponseEntity<Object> getAllTaskUser(String taskUserMongoId){
        return new ResponseEntity<>(taskUserService.getAllTaskUser(SecurityUtils.getCurrentUserId(),taskUserMongoId),HttpStatus.OK);
    }
    @GetMapping("/changeStatus")
@@ -159,4 +160,14 @@
        taskUserService.changeStatus(changesId);
        return new ResponseEntity<>(HttpStatus.OK);
    }
    @GetMapping("/getTaskUserDetail")
    public ResponseEntity<Object> getTaskUserDetail(String taskUserMongoId){
        return new ResponseEntity<>(taskUserService.getTaskUserDetail(taskUserMongoId),HttpStatus.OK);
    }
    @GetMapping("/getTaskDetail")
    public ResponseEntity<Object> getTaskDetail(String taskMongoId) {
        return new ResponseEntity<>(taskUserService.getTaskDetail(taskMongoId),HttpStatus.OK);
    }
}