From 17cbd5b9f612f3d29f02f2722357ea334ede2b41 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 31 七月 2025 19:17:43 +0800
Subject: [PATCH] 提交再次试验需要将检验项目的结论重置为null
---
framework/src/main/resources/mapper/InformationNotificationMapper.xml | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/framework/src/main/resources/mapper/InformationNotificationMapper.xml b/framework/src/main/resources/mapper/InformationNotificationMapper.xml
index cb13597..f0c5549 100644
--- a/framework/src/main/resources/mapper/InformationNotificationMapper.xml
+++ b/framework/src/main/resources/mapper/InformationNotificationMapper.xml
@@ -8,8 +8,10 @@
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">
and i.message_type = #{messageType}
</if>
+ order by i.create_time desc
</select>
</mapper>
--
Gitblit v1.9.3