|
|
@@ -286,6 +286,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where user_id = #{userId}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateUserByLoginName" parameterType="SysUser">
|
|
|
+ update sys_user
|
|
|
+ <set>
|
|
|
+ <if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
|
|
|
+ <if test="userName != null and userName != ''">user_name = #{userName},</if>
|
|
|
+ <if test="email != null and email != ''">email = #{email},</if>
|
|
|
+ <if test="phonenumber != null and phonenumber != ''">phonenumber = #{phonenumber},</if>
|
|
|
+ <if test="sex != null and sex != ''">sex = #{sex},</if>
|
|
|
+ <if test="avatar != null and avatar != ''">avatar = #{avatar},</if>
|
|
|
+ <if test="password != null and password != ''">password = #{password},</if>
|
|
|
+ <if test="salt != null and salt != ''">salt = #{salt},</if>
|
|
|
+ <if test="idType != null and idType != ''">id_type = #{idType},</if>
|
|
|
+ <if test="idNumber != null and idNumber != ''">id_number = #{idNumber},</if>
|
|
|
+ <if test="accountId != null and accountId != ''">account_id = #{accountId},</if>
|
|
|
+ <if test="isAuthentication != null and isAuthentication != ''">is_authentication = #{isAuthentication},</if>
|
|
|
+ <if test="personAttestationTime != null">person_attestation_time = #{personAttestationTime},</if>
|
|
|
+ <if test="receiveUrlMobileNo != null and receiveUrlMobileNo != ''">receive_url_mobile_no = #{receiveUrlMobileNo},</if>
|
|
|
+ <if test="status != null and status != ''">status = #{status},</if>
|
|
|
+ <if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if>
|
|
|
+ <if test="loginDate != null">login_date = #{loginDate},</if>
|
|
|
+ <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="isConsignee != null">is_consignee = #{isConsignee},</if>
|
|
|
+ <if test="isSync != null">is_sync = #{isSync},</if>
|
|
|
+ update_time = sysdate()
|
|
|
+ </set>
|
|
|
+ where login_name = #{loginName}
|
|
|
+ </update>
|
|
|
+
|
|
|
<update id="updateIsAuthentication" parameterType="String">
|
|
|
update sys_user set is_authentication = #{isAuthentication} ,person_attestation_time = now()
|
|
|
where account_id = #{accountId}
|