|
@@ -1057,9 +1057,55 @@
|
|
<update id="updateUserCompanyId">
|
|
<update id="updateUserCompanyId">
|
|
UPDATE sys_user SET com_id = '1',company_id = '1',office_id='5' WHERE company_id=#{companyId}
|
|
UPDATE sys_user SET com_id = '1',company_id = '1',office_id='5' WHERE company_id=#{companyId}
|
|
</update>
|
|
</update>
|
|
- <update id="updateUserName" parameterType="User" >
|
|
|
|
- update sys_user
|
|
|
|
- set name = #{name}
|
|
|
|
|
|
+
|
|
|
|
+ <update id="updateUser">
|
|
|
|
+ update sys_user
|
|
|
|
+ <set>
|
|
|
|
+ <if test="loginName != null and loginName != ''">
|
|
|
|
+ loginName = #{loginName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="passwordRemake != null and passwordRemake != ''">
|
|
|
|
+ passwordRemake = #{passwordRemake},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ name = #{name},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sex != null and sex != ''">
|
|
|
|
+ sex = #{sex},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="email != null and email != ''">
|
|
|
|
+ email = #{email},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="phone != null and phone != ''">
|
|
|
|
+ phone = #{phone},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mobile != null and mobile != ''">
|
|
|
|
+ mobile = #{mobile},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="userType != null and userType != ''">
|
|
|
|
+ userType = #{userType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remarks != null and remarks != ''">
|
|
|
|
+ remarks = #{remarks},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="delFlag != null and delFlag != ''">
|
|
|
|
+ del_Flag = #{delFlag},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="photo != null and photo != ''">
|
|
|
|
+ photo = #{photo},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="comId != null and comId != ''">
|
|
|
|
+ com_id = #{comId},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="company.id != null and company.id != ''">
|
|
|
|
+ company_id = #{company.id},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="office.id != null and office.id != ''">
|
|
|
|
+ office_id = #{office.id}
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
+
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|