From e0b8a22df9a40e1b5691140e23721d2c0a5a5a0b Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Fri, 25 Oct 2024 09:32:21 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/gzdyh_grid' into gzdyh_grid
---
dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUserMapper.xml | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 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 3251ac0..1d2763f 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
@@ -409,18 +409,20 @@
</select>
<!-- 根据部门和角色查询 -->
- <select id="listUserByDeptRoleList" resultMap="dataResult">
+ <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'
- <if test="deptIdList != null and deptIdList != ''">
- and t1.dept_id in
- <foreach collection="deptIdList" item="deptIdList" index="index" open="(" separator="," close=")">
- #{deptIdList}
- </foreach>
- </if>
+ AND t1.unit_id = #{unitId}
+ </select>
+
+ <select id="selectByIdCard" resultMap="dataResult">
+ SELECT * FROM dyh_ct_user
+ WHERE
+ delete_status = '0'
+ and status = '1' and idcard=#{idCard}
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0