From 4f3a98f19143865cdc1de4791e8a95d96bd40c65 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期五, 01 八月 2025 13:27:59 +0800
Subject: [PATCH] yys 密码已重置

---
 ruoyi-system/src/main/resources/mapper/system/InformationNotificationMapper.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/InformationNotificationMapper.xml b/ruoyi-system/src/main/resources/mapper/system/InformationNotificationMapper.xml
new file mode 100644
index 0000000..e20a753
--- /dev/null
+++ b/ruoyi-system/src/main/resources/mapper/system/InformationNotificationMapper.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.InformationNotificationMapper">
+
+    <select id="getPage" resultType="com.ruoyi.common.core.domain.entity.InformationNotificationDto">
+        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">
+            and i.message_type = #{messageType}
+        </if>
+        order by i.create_time desc
+    </select>
+
+    <select id="msgRoll" resultType="com.ruoyi.common.core.domain.entity.InformationNotificationDto">
+        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 i.view_status = false
+        order by i.create_time desc
+    </select>
+
+</mapper>

--
Gitblit v1.9.3