| | |
| | | public Result<?> checkForUnreadData() { |
| | | return Result.success(informationNotificationService.checkForUnreadData()); |
| | | } |
| | | |
| | | @ApiOperation(value = "点击详情触发修改状态为已读") |
| | | @PutMapping("triggerModificationStatusToRead/{id}") |
| | | public Result<?> triggerModificationStatusToRead(@PathVariable("id") Integer id) { |
| | | informationNotificationService.triggerModificationStatusToRead(id); |
| | | return Result.success(); |
| | | } |
| | | } |
| | |
| | | void markAllInformationReadOrDeleteAllReadMessages(Boolean isMarkAllInformationRead); |
| | | |
| | | Boolean checkForUnreadData(); |
| | | |
| | | void triggerModificationStatusToRead(Integer id); |
| | | } |
| | |
| | | .last("limit 1")); |
| | | return !informationNotifications.isEmpty(); |
| | | } |
| | | |
| | | @Override |
| | | public void triggerModificationStatusToRead(Integer id) { |
| | | baseMapper.update(new InformationNotification(), Wrappers.<InformationNotification>lambdaUpdate() |
| | | .eq(InformationNotification::getId, id) |
| | | .set(InformationNotification::getViewStatus, true)); |
| | | } |
| | | } |