From 9a1843b565b97326c78b2e41fc6b7953f5af84d9 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 23 七月 2024 10:15:34 +0800
Subject: [PATCH] 运维阈值key

---
 ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml
index 7908573..4692c3d 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml
@@ -99,4 +99,13 @@
             #{id}
         </foreach>
     </delete>
+
+    <select id="getByUserId" resultMap="YwUnitResult">
+        SELECT
+             tyw.*
+        FROM
+             t_yw_unit tyw
+                 INNER JOIN t_unit_people tup ON tup.unit_id = tyw.id and tyw.deleted = 0
+                 INNER JOIN t_yw_people typ ON tup.yw_people_id = typ.id AND typ.user_id = #{userId} AND typ.deleted = 0
+    </select>
 </mapper>

--
Gitblit v1.8.0