From d06a1424f108c9b321a268b53918bba0a569e7bc Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期三, 13 九月 2023 13:02:55 +0800
Subject: [PATCH] 修改外联历史报警按alarm_time逆序返回数据 修改门禁历史报警按alarm_time逆序返回数据 修改app一键历史报警按create_time逆序返回数据

---
 ard-work/src/main/resources/mapper/alarmpoints/ArdWallMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/alarmpoints/ArdWallMapper.xml b/ard-work/src/main/resources/mapper/alarmpoints/ArdWallMapper.xml
index 813c2d8..5711613 100644
--- a/ard-work/src/main/resources/mapper/alarmpoints/ArdWallMapper.xml
+++ b/ard-work/src/main/resources/mapper/alarmpoints/ArdWallMapper.xml
@@ -128,4 +128,13 @@
             #{wallId}
         </foreach>
     </delete>
+    <select id="selectArdWallListByUserId" parameterType="String"  resultMap="ArdWallResult">
+        SELECT
+            aw.*
+        FROM
+            ard_wall aw
+                LEFT JOIN ard_wall_user awu ON awu.wall_id = aw.ID
+        WHERE
+            awu.user_id =  #{userId}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3