| | |
| | | * 获取项目组管理列表 |
| | | */ |
| | | @ApiOperation(value = "中台消息列表") |
| | | @PostMapping(value = "/notice/list") |
| | | @GetMapping(value = "/notice/list") |
| | | public R<List<TNotice>> list() { |
| | | Long userId = tokenService.getLoginUser().getUserId(); |
| | | List<TNotice> list = noticeService.lambdaQuery().eq(TNotice::getUserId, userId + "").list(); |
| | | List<TNotice> list = noticeService.lambdaQuery() |
| | | .eq(TNotice::getStatus, 1).orderByDesc(TNotice::getCreateTime).eq(TNotice::getUserId, userId + "").list(); |
| | | for (TNotice tNotice : list) { |
| | | SysUser sysUser = sysUserService.selectUserById(Long.valueOf(tNotice.getCommitId())); |
| | | if (sysUser!=null){ |
| | |
| | | } |
| | | return R.ok(list); |
| | | } |
| | | /** |
| | | * 获取项目组管理列表 |
| | | */ |
| | | @ApiOperation(value = "点击跳转后") |
| | | @GetMapping(value = "/open/notice/editStatus") |
| | | public R editStatus(@RequestParam String id) { |
| | | TNotice notice = noticeService.getById(id); |
| | | notice.setStatus(2); |
| | | noticeService.updateById(notice); |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | } |