44323
2024-04-23 16b704d18a875d1fb63827aaa507790ba2bef5be
guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserMapper.xml
@@ -49,7 +49,7 @@
      <if test="deptid != null and deptid != 0">
         and (deptid = #{deptid} or deptid in ( select id from sys_dept where pids like CONCAT('%[', #{deptid}, ']%') ))
      </if>
      <if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
      <if test="beginTime != null  and endTime != null">
         and (createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
      </if>
   </select>
@@ -85,11 +85,16 @@
             LEFT JOIN sys_dept sd on us.deptid = sd.id
      <where>
          us.status != 3
         <if test="null != account and '' != account">
            and us.account like CONCAT('%', #{account}, '%')
         <if test="null != phone and '' != phone">
            and us.phone like CONCAT('%', #{phone}, '%')
         </if>
         <if test="null != name and '' != name">
            and us.name like CONCAT('%', #{name}, '%')
         </if>
         <if test="null != deptName and '' != deptName">
            and sd.simplename like CONCAT('%', #{deptName}, '%')
         </if>
      </where>
      order by us.createtime desc
   </select>
</mapper>