bug
jiangqs
2023-07-20 882edc4b8ac7cb11ec9d536b5573df2c7ed512ef
ruoyi-modules/ruoyi-system/src/main/resources/mapper/sys/SysUserMapper.xml
@@ -124,7 +124,7 @@
   
   <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult">
       <include refid="selectUserVo"/>
      where u.user_name = #{userName} and u.del_flag = '0'
      where u.user_name = #{userName} and u.del_flag = '0' and user_type = '00'
   </select>
   
   <select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
@@ -159,6 +159,7 @@
          <if test="createBy != null and createBy != ''">create_by,</if>
          <if test="remark != null and remark != ''">remark,</if>
         <if test="dataScope != null and dataScope != ''">data_scope,</if>
         <if test="userType != null and userType != ''">user_type,</if>
      create_time
       )values(
          <if test="userId != null and userId != ''">#{userId},</if>
@@ -174,6 +175,7 @@
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          <if test="remark != null and remark != ''">#{remark},</if>
         <if test="dataScope != null and dataScope != ''">#{dataScope},</if>
         <if test="userType != null and userType != ''">#{userType},</if>
      sysdate()
       )
   </insert>
@@ -213,11 +215,11 @@
   </update>
   
   <delete id="deleteUserById" parameterType="Long">
       update sys_user set del_flag = '2',user_name CONCAT(user_name,":已删除") where user_id = #{userId}
       update sys_user set del_flag = '2',user_name = CONCAT(user_name,":已删除") where user_id = #{userId}
    </delete>
    
    <delete id="deleteUserByIds" parameterType="Long">
       update sys_user set del_flag = '2',user_name CONCAT(user_name,":已删除") where user_id in
       update sys_user set del_flag = '2',user_name =  CONCAT(user_name,":已删除") where user_id in
       <foreach collection="array" item="userId" open="(" separator="," close=")">
          #{userId}
        </foreach>