| | |
| | | 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> |