无关风月
2 天以前 f6760448428b0a11aebab4ee281023532e4f61d7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/OaNotifationUserController.java
@@ -20,6 +20,7 @@
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;
@@ -41,6 +42,7 @@
 * @since 2025-09-15
 */
@RestController
@Api("我的消息通知")
@RequestMapping("/oa-notifation-user")
public class OaNotifationUserController {
    @Resource
@@ -70,7 +72,10 @@
    @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();