1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 06:51:23 +08:00

Update addNotice component judge

This commit is contained in:
cccccyb
2023-05-06 14:15:42 +08:00
parent 107c3b9fbd
commit 3feee5345d
3 changed files with 2 additions and 6 deletions

View File

@@ -42,7 +42,6 @@ public class WorkController {
@GetMapping("/todo")
public ResponseResult getTodo() {
Long userId = WebUtil.getLoginUser().getUser().getId();
System.out.println(userId);
return ResponseResult.build(ResponseCode.DATABASE_SELECT_OK, "success", workService.getTodo(userId));
}
@@ -65,13 +64,11 @@ public class WorkController {
@DeleteMapping("/{id}")
public ResponseResult deleteById(@PathVariable Long id) {
System.out.println(id);
return ResponseResult.build(ResponseCode.DATABASE_DELETE_OK, "success", workService.deleteByWorkId(id));
}
@PutMapping("/setStatus")
public ResponseResult updateStatus(@RequestBody UserWork userWork) {
System.out.println(userWork);
userWork.setUserId(WebUtil.getLoginUser().getUser().getId());
return ResponseResult.build(ResponseCode.DATABASE_UPDATE_OK, "success", workService.updateStatus(userWork));
}