| | |
| | | import me.zhengjie.annotation.Log; |
| | | import me.zhengjie.modules.task.domain.TaskUserMongo; |
| | | import me.zhengjie.modules.task.service.TaskUserService; |
| | | import me.zhengjie.modules.task.service.dto.TaskUserMongoDto; |
| | | import me.zhengjie.modules.task.service.dto.TaskUserQueryCriteria; |
| | | import me.zhengjie.utils.SecurityUtils; |
| | | import org.springframework.data.domain.Pageable; |
| | |
| | | @Log("修改任务分配") |
| | | @ApiOperation("修改任务分配") |
| | | @PreAuthorize("@el.check('taskUser:edit')") |
| | | public ResponseEntity<Object> updateTaskUser(@Validated @RequestBody TaskUserMongo resources) throws Exception { |
| | | public ResponseEntity<Object> updateTaskUser(@Validated @RequestBody TaskUserMongoDto resources) throws Exception { |
| | | taskUserService.update(resources); |
| | | return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
| | | } |
| | |
| | | |
| | | @GetMapping("/getAllTaskUser") |
| | | @Log("先将所有的分配任务都缓存起来") |
| | | public ResponseEntity<Object> getAllTaskUser(String flag){ |
| | | return new ResponseEntity<>(taskUserService.getAllTaskUser(SecurityUtils.getCurrentUserId(),flag),HttpStatus.OK); |
| | | public ResponseEntity<Object> getAllTaskUser(){ |
| | | return new ResponseEntity<>(taskUserService.getAllTaskUser(SecurityUtils.getCurrentUserId()),HttpStatus.OK); |
| | | } |
| | | } |