From 02dab566014a28bbcd6b2a2004a857562101e459 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期五, 26 四月 2024 09:11:09 +0800
Subject: [PATCH] 检验项目绑定产品;检验对象绑定产品

---
 framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java b/framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java
index 153c74a..c1d6b66 100644
--- a/framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java
+++ b/framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java
@@ -31,7 +31,8 @@
 
     @Override
     public IPage<InformationNotificationDto> getPage(Page page, String messageType) {
-        return baseMapper.getPage(page, messageType);
+        Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("selectInsOrderParameter");
+        return baseMapper.getPage(page, messageType, map1.get("userId"));
     }
 
     @Override
@@ -58,4 +59,11 @@
                         .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));
+    }
 }

--
Gitblit v1.9.3