|
|
|
@ -31,6 +31,9 @@
|
|
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
|
|
AND date_format(createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="startAuditTime != null and startAuditTime != '' and endAuditTime != null and endAuditTime != ''">
|
|
|
|
|
AND date_format(auditTime, '%Y-%m-%d') between date_format(#{startAuditTime}, '%Y-%m-%d') and date_format(#{endAuditTime}, '%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="startTime != null and startTime != '' and (endTime == null or endTime == '')">
|
|
|
|
|
AND date_format(createTime, '%Y-%m-%d') >= date_format(#{startTime}, '%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|