From cbddf31eccd506aa4a0f9062b55800c4e2c1d524 Mon Sep 17 00:00:00 2001
From: xusd <hugeinfo123>
Date: Tue, 17 Sep 2024 19:08:31 +0800
Subject: [PATCH] 环境配置修正;增加正式环境

---
 dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUserMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUserMapper.xml b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUserMapper.xml
index 18c30ba..b09d607 100644
--- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUserMapper.xml
+++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUserMapper.xml
@@ -407,4 +407,15 @@
         </if>
         limit #{page.offset}, #{page.size}
     </select>
+
+    <!--  根据部门和角色查询  -->
+    <select id="listUserByUnitRoleList" resultMap="dataResult">
+        SELECT t1.id, t1.true_name, t1.dept_id
+        FROM dyh_ct_user t1 LEFT JOIN dyh_ct_userole t2 ON t1.id = t2.user_id
+        WHERE
+        t1.delete_status = '0'
+        AND t2.role_code = #{roleCode}
+        AND t1.status = '1'
+        AND t1.unit_id = #{unitId}
+    </select>
 </mapper> 
\ No newline at end of file

--
Gitblit v1.8.0