jiangqs
2023-06-26 b4882b114f082e010d4cc3359d78d18095ef3b83
ruoyi-modules/ruoyi-system/src/main/resources/mapper/sys/SysUserMapper.xml
@@ -158,7 +158,8 @@
          <if test="status != null and status != ''">status,</if>
          <if test="createBy != null and createBy != ''">create_by,</if>
          <if test="remark != null and remark != ''">remark,</if>
          create_time
         <if test="dataScope != null and dataScope != ''">data_scope,</if>
      create_time
       )values(
          <if test="userId != null and userId != ''">#{userId},</if>
          <if test="deptId != null and deptId != ''">#{deptId},</if>
@@ -172,7 +173,8 @@
          <if test="status != null and status != ''">#{status},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          <if test="remark != null and remark != ''">#{remark},</if>
          sysdate()
         <if test="dataScope != null and dataScope != ''">#{dataScope},</if>
      sysdate()
       )
   </insert>
   
@@ -192,7 +194,8 @@
          <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>
          update_time = sysdate()
         <if test="dataScope != null and dataScope != ''">data_scope = #{dataScope},</if>
         update_time = sysdate()
       </set>
       where user_id = #{userId}
   </update>