From ec9921448e14511fdea17f0ee1b1b417e8c7c648 Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期一, 12 八月 2024 13:45:14 +0800 Subject: [PATCH] 数采-解决采集其他数据会覆盖问题 --- user-server/src/main/resources/mapper/UserMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/user-server/src/main/resources/mapper/UserMapper.xml b/user-server/src/main/resources/mapper/UserMapper.xml index 4ce6510..d249c20 100644 --- a/user-server/src/main/resources/mapper/UserMapper.xml +++ b/user-server/src/main/resources/mapper/UserMapper.xml @@ -39,4 +39,12 @@ from user where state = 1 </select> + <select id="getCustom" resultType="com.yuanchu.mom.pojo.User"> + select u.id,c.company,u.name,c.code,u.phone,c.id departId from user u + left join custom c on u.company = c.id + where u.id = #{userId} + </select> + <select id="getUser" resultType="com.yuanchu.mom.pojo.User"> + select * from user where depart_lims_id=FIND_IN_SET(depart_lims_id, (select GROUP_CONCAT(id SEPARATOR ',') from department_lims where department_lims.name like '%瀹為獙瀹�')) + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3