From 51ec98113c6d49d0f7eec4e3c030e55e337e97db Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 26 五月 2025 15:47:16 +0800
Subject: [PATCH] 芯导软件(江苏)有限公司  delete

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

diff --git a/framework/src/main/resources/mapper/InformationNotificationMapper.xml b/framework/src/main/resources/mapper/InformationNotificationMapper.xml
index 8141046..f0c5549 100644
--- a/framework/src/main/resources/mapper/InformationNotificationMapper.xml
+++ b/framework/src/main/resources/mapper/InformationNotificationMapper.xml
@@ -3,12 +3,15 @@
 <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}
+        and DATE(i.create_time) BETWEEN CURDATE() - INTERVAL 7 DAY AND CURDATE()
         <if test="messageType != '' and messageType != null">
-            where i.message_type = #{messageType}
+            and i.message_type = #{messageType}
         </if>
+        order by i.create_time desc
     </select>
 </mapper>

--
Gitblit v1.9.3