无关风月
2025-11-06 547209172a4decd10345190702bf4dcbda3f0d21
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -237,12 +237,7 @@
      <if test="query.status != null and query.status != ''">
         AND u.status = #{query.status}
      </if>
      <if test="query.deptIds != null and query.deptIds.size()>0">
         AND u.user_id IN (select DISTINCT user_id from t_dept_to_user where dept_id IN
         <foreach collection="query.deptIds" close=")" open="(" item="deptId" separator=",">
            #{deptId}
         </foreach>)
      </if>
      <if test="query.roleIds != null and query.roleIds.size()>0">
         AND r.role_id IN
         <foreach collection="query.roleIds" close=")" open="(" item="roleId" separator=",">
@@ -308,7 +303,6 @@
          <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>
      <if test="userIdentification != null and userIdentification != ''">userIdentification,</if>
          create_time
       )values(
          <if test="userId != null and userId != ''">#{userId},</if>
@@ -324,7 +318,6 @@
          <if test="status != null and status != ''">#{status},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          <if test="remark != null and remark != ''">#{remark},</if>
         <if test="userIdentification != null and userIdentification != ''">#{userIdentification},</if>
          sysdate()
       )
   </insert>