|
@@ -32,12 +32,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="dictType != null and dictType != ''">
|
|
<if test="dictType != null and dictType != ''">
|
|
|
AND dict_type like concat('%', #{dictType}, '%')
|
|
AND dict_type like concat('%', #{dictType}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
|
|
- and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
|
|
- and date_format(create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ <if test="params.beginTime != null and params.beginTime != ''">
|
|
|
|
|
+ AND to_char(create_time, 'YYYYMMDD') >= to_char(#{params.beginTime}::timestamp, 'YYYYMMDD')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="params.endTime != null and params.endTime != ''">
|
|
|
|
|
+ AND to_char(create_time, 'YYYYMMDD') <= to_char(#{params.endTime}::timestamp, 'YYYYMMDD')
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|