修复时间筛选问题(I5S1XI)
This commit is contained in:
parent
f575063772
commit
fed7e5d620
@ -37,10 +37,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND user_name like concat(concat('%',#{userName}),'%')
|
AND user_name like concat(concat('%',#{userName}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and login_time >= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(login_time, 'yyyy-mm-dd') >= #{params.beginTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
and login_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(login_time, 'yyyy-mm-dd') <= #{params.endTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by info_id desc
|
order by info_id desc
|
||||||
|
@ -91,10 +91,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND oper_name like concat(concat('%',#{operName}),'%')
|
AND oper_name like concat(concat('%',#{operName}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and oper_time >= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(oper_time, 'yyyy-mm-dd') >= #{params.beginTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
and oper_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(oper_time, 'yyyy-mm-dd') <= #{params.endTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by oper_id desc
|
order by oper_id desc
|
||||||
|
@ -51,10 +51,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND config_key like concat(concat('%',#{configKey}),'%')
|
AND config_key like concat(concat('%',#{configKey}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and create_time >= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(create_time, 'yyyy-mm-dd') >= #{params.beginTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
and create_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(create_time, 'yyyy-mm-dd') <= #{params.endTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
@ -33,10 +33,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND dict_type like concat(concat('%',#{dictType}),'%')
|
AND dict_type like concat(concat('%',#{dictType}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and create_time >= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(create_time, 'yyyy-mm-dd') >= #{params.beginTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
and create_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(create_time, 'yyyy-mm-dd') <= #{params.endTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
@ -36,10 +36,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND invoke_target like concat(concat('%', #{invokeTarget}), '%')
|
AND invoke_target like concat(concat('%', #{invokeTarget}), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and create_time >= to_date(#{params.params.beginTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(create_time, 'yyyy-mm-dd') >= #{params.beginTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
and create_time <= to_date(#{params.params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(create_time, 'yyyy-mm-dd') <= #{params.endTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
@ -46,10 +46,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND r.role_key like concat(concat('%',#{roleKey}),'%')
|
AND r.role_key like concat(concat('%',#{roleKey}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
and r.create_time >= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(r.create_time, 'yyyy-mm-dd') >= #{params.beginTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
and r.create_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(r.create_time, 'yyyy-mm-dd') <= #{params.endTime}
|
||||||
</if>
|
</if>
|
||||||
<!-- 数据范围过滤 -->
|
<!-- 数据范围过滤 -->
|
||||||
${params.dataScope}
|
${params.dataScope}
|
||||||
|
@ -73,10 +73,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND u.phonenumber like concat(concat('%',#{phonenumber}),'%')
|
AND u.phonenumber like concat(concat('%',#{phonenumber}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND u.create_time >= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(u.create_time, 'yyyy-mm-dd') >= #{params.beginTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
AND u.create_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(u.create_time, 'yyyy-mm-dd') <= #{params.endTime}
|
||||||
</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) <![CDATA[ <> ]]> 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) <![CDATA[ <> ]]> 0 ))
|
||||||
|
@ -67,10 +67,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND lower(table_comment) like lower(concat(concat('%', #{tableComment}), '%'))
|
AND lower(table_comment) like lower(concat(concat('%', #{tableComment}), '%'))
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND create_time >= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(create_time, 'yyyy-mm-dd') >= #{params.beginTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
AND create_time <= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss')
|
AND to_char(create_time, 'yyyy-mm-dd') <= #{params.endTime}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
Loading…
Reference in New Issue
Block a user