From 01a3add609a65cfe5c066ebc743ea6308d32a053 Mon Sep 17 00:00:00 2001 From: 张晓波 <bingbo1993@126.com> Date: 星期三, 18 十月 2023 16:12:54 +0800 Subject: [PATCH] 苏州配置文件简化 --- hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml | 39 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 38 insertions(+), 1 deletions(-) diff --git a/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml b/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml index 4680268..ef4ab34 100644 --- a/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml +++ b/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml @@ -736,6 +736,12 @@ <if test="oriStr!=null and oriStr !=''"> ori_str, </if> + <if test="cmpType!=null and cmpType !=''"> + cmp_type, + </if> + <if test="captureScore!=null and captureScore !=''"> + capture_score, + </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> #{id}, @@ -759,6 +765,12 @@ </if> <if test="oriStr!=null and oriStr !=''"> #{oriStr}, + </if> + <if test="cmpType!=null and cmpType !=''"> + #{cmpType}, + </if> + <if test="captureScore!=null and captureScore !=''"> + #{captureScore}, </if> </trim> @@ -866,7 +878,7 @@ <select id="groupUserWorking" resultType="com.thhy.staff.modules.biz.platuser.entity.GroupWorking"> select sg.group_id as groupId,sg.group_name as groupName, - (select count(user_id) from sys_group_user where group_id = sg.group_id) as groupUserCount + (select count(user_id) from sys_group_user where and is_use = 1 and group_id = sg.group_id) as groupUserCount from sys_group sg left join sys_com_depart sd on sg.depart_id = sd.depart_id where sg.is_use = 1 and sd.company_id = #{companyId} @@ -888,4 +900,29 @@ where spu.job_num = #{jobNum} </select> + <select id="queryUserFace" resultType="com.thhy.staff.modules.biz.face.entity.UserFaceVo"> + select user_id as userId,real_name as realName,sex,photo as templateImgUrl + from sys_plat_user spu + limit #{offset},#{limit} + </select> + + <select id="queryUserFaceSingle" resultType="com.thhy.staff.modules.biz.face.entity.UserFaceVo"> + select user_id as userId,real_name as realName,sex,photo as templateImgUrl + from sys_plat_user spu + where user_id = #{userId} + </select> + + <update id="syncResult"> + update sys_plat_user set sync_success = #{syncSuccess} + <where> + <foreach item="item" index="index" collection="userIdArray" open="user_id in (" separator="," close=")"> + #{item} + </foreach> + </where> + </update> + + <update id="syncFail"> + update sys_plat_user set sync_success = 2,sync_fail_reason = #{syncFailReason} where user_id = #{userId} + </update> + </mapper> -- Gitblit v1.9.3