|
@@ -35,10 +35,10 @@
|
|
|
and username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="createTimeBegin != null">
|
|
|
- and create_time >= #{createTimeBegin,jdbcType=TIMESTAMP}
|
|
|
+ and DATE(create_time) >= #{createTimeBegin,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="createTimeEnd != null">
|
|
|
- and create_time <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
+ and DATE(create_time) <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
ORDER BY create_time DESC
|
|
|
</select>
|
|
@@ -64,10 +64,10 @@
|
|
|
and operation_type = #{operationType,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="createTimeBegin != null">
|
|
|
- and create_time >= #{createTimeBegin,jdbcType=TIMESTAMP}
|
|
|
+ and DATE(create_time) >= #{createTimeBegin,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="createTimeEnd != null">
|
|
|
- and create_time <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
+ and DATE(create_time) <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
ORDER BY create_time DESC
|
|
|
</select>
|
|
@@ -97,10 +97,10 @@
|
|
|
and content like CONCAT('%',#{content,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="createTimeBegin != null">
|
|
|
- and create_time >= #{createTimeBegin,jdbcType=TIMESTAMP}
|
|
|
+ and DATE(create_time) >= #{createTimeBegin,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="createTimeEnd != null">
|
|
|
- and create_time <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
+ and DATE(create_time) <= #{createTimeEnd,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
ORDER BY create_time DESC
|
|
|
</select>
|