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