liyong
9 天以前 b9e71660ca35e947ccac8079d3033b88ece5190e
src/main/resources/mapper/system/SysUserMapper.xml
@@ -161,21 +161,25 @@
   </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=")">
      <where>
         u.del_flag = '0'
         <if test="userIds != null and userIds.size() > 0">
         and   u.user_id in <foreach collection="userIds" item="item" open="(" separator="," close=")">
          #{item}
        </foreach>
      and u.del_flag = '0'
         </if>
      </where>
   </select>
   <select id="selectRegistrantIds" resultType="com.ruoyi.project.system.domain.SysUser">
      SELECT user_id, nick_name FROM sys_user
      <where>
         <if test="list != null and list.size() > 0">
         <if test="registrantIds != null and registrantIds.size() > 0">
            user_id IN
            <foreach item="id" collection="list" open="(" separator="," close=")">
            <foreach item="id" collection="registrantIds" open="(" separator="," close=")">
               #{id}
            </foreach>
         </if>
         <if test="list == null or list.size() == 0">
         <if test="registrantIds == null or registrantIds.size() == 0">
            1=0  <!-- 空列表时返回空结果 -->
         </if>
      </where>