RuoYi
2025-03-11 a256618d5d5b0fd7a62950722444e6e0790df5dd
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -146,6 +146,7 @@
       insert into sys_user(
          <if test="userId != null and userId != 0">user_id,</if>
          <if test="deptId != null and deptId != 0">dept_id,</if>
          <if test="userName != null and userName != ''">user_name,</if>
          <if test="nickName != null and nickName != ''">nick_name,</if>
          <if test="email != null and email != ''">email,</if>
          <if test="avatar != null and avatar != ''">avatar,</if>
@@ -177,7 +178,6 @@
       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="nickName != null and nickName != ''">nick_name = #{nickName},</if>
          <if test="email != null ">email = #{email},</if>
          <if test="phonenumber != null ">phonenumber = #{phonenumber},</if>