| | |
| | | import com.ruoyi.system.vo.system.NotificationDetailVO; |
| | | import com.ruoyi.system.vo.system.NotificationUserDetailVO; |
| | | import com.ruoyi.system.vo.system.NotificationVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import jdk.nashorn.internal.parser.Token; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | * @since 2025-09-15 |
| | | */ |
| | | @RestController |
| | | @Api("我的消息通知") |
| | | @RequestMapping("/oa-notifation-user") |
| | | public class OaNotifationUserController { |
| | | @Resource |
| | |
| | | @GetMapping(value = "/detail") |
| | | public R<NotificationDetailVO> detail(String id) { |
| | | NotificationDetailVO notificationDetailVO = new NotificationDetailVO(); |
| | | OaNotification oaNotification = oaNotificationService.getById(id); |
| | | OaNotificationUser on = oaNotifationUserService.getById(id); |
| | | on.setReadStatus( true); |
| | | oaNotifationUserService.updateById(on); |
| | | OaNotification oaNotification = oaNotificationService.getById(on.getNotificationId()); |
| | | BeanUtils.copyProperties(oaNotification, notificationDetailVO); |
| | | // StringBuilder deptName = new StringBuilder(); |
| | | // List<TDept> tDepts = deptService.list(); |