张晓波
2023-10-19 fe478fd8b56a4ad8b1abcc43f986626c38182626
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>
@@ -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>