src/main/resources/mapper/system/SysUserMapper.xml
@@ -139,6 +139,7 @@
   <select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
      <include refid="selectUserVo"/>
      where u.user_id = #{userId}
      and u.del_flag = '0'
   </select>
   <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult">
@@ -152,12 +153,18 @@
   <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
      select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1
   </select>
   <select id="selectUserByIds" resultType="com.ruoyi.project.system.domain.SysUser">
      <include refid="selectUserVo"/>
      where u.user_id in <foreach collection="userIds" item="item" open="(" separator="," close=")">
          #{item}
        </foreach>
   </select>
    <select id="selectUserByIds" resultType="com.ruoyi.project.system.domain.SysUser">
        <include refid="selectUserVo"/>
        <where>
            <if test="userIds != null and userIds.size > 0">
                and u.user_id in
                <foreach collection="userIds" item="item" open="(" separator="," close=")">
                    #{item}
                </foreach>
            </if>
            and u.del_flag = '0'
        </where>
    </select>
   <select id="selectRegistrantIds" resultType="com.ruoyi.project.system.domain.SysUser">
      SELECT user_id, nick_name FROM sys_user
      <where>
@@ -179,6 +186,7 @@
      <foreach collection="userIds" item="id" open="(" separator="," close=")">
         #{id}
      </foreach>
      and del_flag = '0'
   </select>
   <select id="selectUserByNickName" resultType="com.ruoyi.project.system.domain.SysUser"
         parameterType="java.lang.String">