修复时间筛选问题(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}),'%')
|
||||
</if>
|
||||
<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 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>
|
||||
</where>
|
||||
order by info_id desc
|
||||
|
@ -91,10 +91,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND oper_name like concat(concat('%',#{operName}),'%')
|
||||
</if>
|
||||
<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 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>
|
||||
</where>
|
||||
order by oper_id desc
|
||||
|
@ -51,10 +51,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND config_key like concat(concat('%',#{configKey}),'%')
|
||||
</if>
|
||||
<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 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>
|
||||
</where>
|
||||
</select>
|
||||
|
@ -33,10 +33,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND dict_type like concat(concat('%',#{dictType}),'%')
|
||||
</if>
|
||||
<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 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>
|
||||
</where>
|
||||
</select>
|
||||
|
@ -36,10 +36,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND invoke_target like concat(concat('%', #{invokeTarget}), '%')
|
||||
</if>
|
||||
<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 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>
|
||||
</where>
|
||||
</select>
|
||||
|
@ -46,10 +46,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND r.role_key like concat(concat('%',#{roleKey}),'%')
|
||||
</if>
|
||||
<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 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>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
|
@ -73,10 +73,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND u.phonenumber like concat(concat('%',#{phonenumber}),'%')
|
||||
</if>
|
||||
<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 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 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 ))
|
||||
|
@ -67,10 +67,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND lower(table_comment) like lower(concat(concat('%', #{tableComment}), '%'))
|
||||
</if>
|
||||
<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 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>
|
||||
</where>
|
||||
</select>
|
||||
|
Loading…
Reference in New Issue
Block a user