|
@@ -69,10 +69,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
|
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
|
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
|
- AND date_format(u.create_time,'%Y-%m-%d %H:%i:%s') >= date_format(#{params.beginTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
|
|
+ AND date_format(u.create_time,'%Y-%m-%d %H:%i:%s') >= date_format(#{beginTime},'%Y-%m-%d %H:%i:%s')
|
|
</if>
|
|
</if>
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
|
|
- AND date_format(u.create_time,'%Y-%m-%d %H:%i:%s') <= date_format(#{params.endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
|
|
+ AND date_format(u.create_time,'%Y-%m-%d %H:%i:%s') <= date_format(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
</if>
|
|
</if>
|
|
<if test="deptId != null and deptId != 0">
|
|
<if test="deptId != null and deptId != 0">
|
|
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) ))
|
|
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) ))
|