无关风月
2025-06-26 a0e9fac251df54e5ed6159ce1fdb77d463ebdc48
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -265,9 +265,8 @@
   <select id="choiceUserList" resultType="com.ruoyi.system.vo.ChoiceUserVO">
      select * from sys_user
      where status =  0 and del_flag = 0
        and roleType = #{query.roleType}
      <if test="query.userIds != null and query.userIds()>0">
      where status =  '0' and del_flag = '0'
      <if test="query.userIds != null and query.userIds.size()>0">
         AND user_id IN
         <foreach collection="query.userIds" close=")" open="(" item="id" separator=",">
            #{id}
@@ -278,7 +277,7 @@
      select * from sys_user
      where 1=1
            <if test="userName != null and userName != ''">
               OR nick_name LIKE concat('%', #{userName}, '%')
               and nick_name LIKE concat('%', #{userName}, '%')
            </if>
   </select>
@@ -375,7 +374,7 @@
   </update>
    <delete id="deleteUserById" parameterType="Long">
       update sys_user set del_flag = '2' where user_id = #{userId}
       delete sys_user  where user_id = #{userId}
    </delete>
    
    <delete id="deleteUserByIds" parameterType="Long">