From c221163b3d14e5e22c9042fb000253b6e5f5fd49 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 23 四月 2024 17:29:59 +0800
Subject: [PATCH] 2024-4-23 消息通知后端开发

---
 framework/src/main/resources/mapper/InformationNotificationMapper.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/framework/src/main/resources/mapper/InformationNotificationMapper.xml b/framework/src/main/resources/mapper/InformationNotificationMapper.xml
index 8141046..cb13597 100644
--- a/framework/src/main/resources/mapper/InformationNotificationMapper.xml
+++ b/framework/src/main/resources/mapper/InformationNotificationMapper.xml
@@ -3,12 +3,13 @@
 <mapper namespace="com.yuanchu.mom.mapper.InformationNotificationMapper">
 
     <select id="getPage" resultType="com.yuanchu.mom.pojo.InformationNotificationDto">
-        select i.*, u.name senderUser, u2.name consigneeUserr
+        select i.*, u.name senderUser, u2.name consigneeUser
         from information_notification i
                  left join user u on i.sender_id = u.id
                  left join user u2 on u2.id = i.consignee_id
+        where i.consignee_id = #{userId}
         <if test="messageType != '' and messageType != null">
-            where i.message_type = #{messageType}
+            and i.message_type = #{messageType}
         </if>
     </select>
 </mapper>

--
Gitblit v1.9.3