新增用户优化

This commit is contained in:
马三炮 2025-04-29 13:51:15 +08:00
parent 1b84b3e46e
commit 4130c81a57
1 changed files with 9 additions and 3 deletions

View File

@ -57,8 +57,11 @@
<if test="userCode != null and userCode != ''"> <if test="userCode != null and userCode != ''">
user_code, user_code,
</if> </if>
sex, dept,login_type, role_id, user_type, state, sex, dept, role_id, user_type, state,
password, password,
<if test="loginType != null and loginType != ''">
login_type,
</if>
<if test="teamId != null and teamId != ''"> <if test="teamId != null and teamId != ''">
team_id, team_id,
</if> </if>
@ -67,9 +70,12 @@
<if test="userCode != null and userCode != ''"> <if test="userCode != null and userCode != ''">
#{userCode}, #{userCode},
</if> </if>
#{sex}, #{dept},#{loginType}, #{roleId}, #{userType}, #{sex}, #{dept}, #{roleId}, #{userType},
1, 1,
#{password}, #{password},
<if test="loginType != null and loginType != ''">
#{loginType},
</if>
<if test="teamId != null and teamId != ''"> <if test="teamId != null and teamId != ''">
#{teamId}, #{teamId},
</if> </if>
@ -322,4 +328,4 @@
set sign_img = #{signImg} set sign_img = #{signImg}
where id = #{id} where id = #{id}
</update> </update>
</mapper> </mapper>