From a07b4b6ff1c98dcf81338bb45d59308db7c058a9 Mon Sep 17 00:00:00 2001 From: 李旭东 <woaiguo66@sina.com> Date: 星期五, 03 十一月 2023 17:18:56 +0800 Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe --- hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml b/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml index 4591523..70a6c79 100644 --- a/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml +++ b/hd/pipe/StaffManage/src/main/resources/mapping/PlatUserMapper.xml @@ -930,4 +930,40 @@ update sys_plat_user set sync_success = 2,sync_fail_reason = #{syncFailReason} where user_id = #{userId} </update> + <select id="countByFaceId" resultType="int"> + select count(user_id) from sys_plat_user where face_id = #{faceId} + </select> + + <insert id="insertSamplePlatUser"> + insert into sys_plat_user + <trim prefix="(" suffixOverrides="," suffix=")"> + <if test="userId != null and userId != ''"> + user_id, + </if> + <if test="realName != null and realName != ''"> + real_name, + </if> + <if test="faceId != null and faceId != ''"> + face_id, + </if> + <if test="idNo != null and idNo != ''"> + id_no, + </if> + </trim> + <trim prefix="values (" suffixOverrides="," suffix=")"> + <if test="userId != null and userId != ''"> + #{userId}, + </if> + <if test="realName != null and realName != ''"> + #{realName}, + </if> + <if test="faceId != null and faceId != ''"> + #{faceId}, + </if> + <if test="idNo != null and idNo != ''"> + #{idNo}, + </if> + </trim> + </insert> + </mapper> -- Gitblit v1.9.3