修复时间筛选问题(I5S1XI)

This commit is contained in:
RuoYi 2022-09-21 12:48:07 +08:00
parent f575063772
commit fed7e5d620
8 changed files with 16 additions and 16 deletions

View File

@ -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 &gt;= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(login_time, 'yyyy-mm-dd') &gt;= #{params.beginTime}
</if> </if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and login_time &lt;= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(login_time, 'yyyy-mm-dd') &lt;= #{params.endTime}
</if> </if>
</where> </where>
order by info_id desc order by info_id desc

View File

@ -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 &gt;= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(oper_time, 'yyyy-mm-dd') &gt;= #{params.beginTime}
</if> </if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and oper_time &lt;= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(oper_time, 'yyyy-mm-dd') &lt;= #{params.endTime}
</if> </if>
</where> </where>
order by oper_id desc order by oper_id desc

View File

@ -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 &gt;= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(create_time, 'yyyy-mm-dd') &gt;= #{params.beginTime}
</if> </if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and create_time &lt;= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(create_time, 'yyyy-mm-dd') &lt;= #{params.endTime}
</if> </if>
</where> </where>
</select> </select>

View File

@ -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 &gt;= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(create_time, 'yyyy-mm-dd') &gt;= #{params.beginTime}
</if> </if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and create_time &lt;= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(create_time, 'yyyy-mm-dd') &lt;= #{params.endTime}
</if> </if>
</where> </where>
</select> </select>

View File

@ -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 &gt;= to_date(#{params.params.beginTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(create_time, 'yyyy-mm-dd') &gt;= #{params.beginTime}
</if> </if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and create_time &lt;= to_date(#{params.params.endTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(create_time, 'yyyy-mm-dd') &lt;= #{params.endTime}
</if> </if>
</where> </where>
</select> </select>

View File

@ -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 &gt;= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(r.create_time, 'yyyy-mm-dd') &gt;= #{params.beginTime}
</if> </if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and r.create_time &lt;= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(r.create_time, 'yyyy-mm-dd') &lt;= #{params.endTime}
</if> </if>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}

View File

@ -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 &gt;= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(u.create_time, 'yyyy-mm-dd') &gt;= #{params.beginTime}
</if> </if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND u.create_time &lt;= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(u.create_time, 'yyyy-mm-dd') &lt;= #{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 ))

View File

@ -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 &gt;= to_date(#{params.beginTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(create_time, 'yyyy-mm-dd') &gt;= #{params.beginTime}
</if> </if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND create_time &lt;= to_date(#{params.endTime},'yyyy-MM-dd HH24:mi:ss') AND to_char(create_time, 'yyyy-mm-dd') &lt;= #{params.endTime}
</if> </if>
</where> </where>
</select> </select>