ZQN
2024-06-26 405efffde1a73706126171e2632c3e6a939c48cb
project-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -69,13 +69,16 @@
             u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,d.dept_name, d.leader
      from sys_user u
      left join sys_dept d on u.dept_id = d.dept_id
      where u.del_flag = '0'
      where u.del_flag = '0' and u.user_name!='admin'
      <if test="userId != null and userId != 0">
         AND u.user_id = #{userId}
      </if>
      <if test="userName != null and userName != ''">
         AND u.user_name like concat('%', #{userName}, '%')
      </if>
      <if test="nickName != null and nickName != ''">
         AND u.nick_name like concat('%', #{nickName}, '%')
      </if>
      <if test="status != null and status != ''">
         AND u.status = #{status}
      </if>