|
@@ -821,7 +821,8 @@
|
|
821
|
left join check_user cu on (cu.source_id = cpi.id and cu.type = 'INSPECT_RECORDS_INSPECTION_ITEM_DETAILS')
|
821
|
left join check_user cu on (cu.source_id = cpi.id and cu.type = 'INSPECT_RECORDS_INSPECTION_ITEM_DETAILS')
|
|
822
|
where 1 = 1
|
822
|
where 1 = 1
|
|
823
|
<if test="specifiedDate != null">
|
823
|
<if test="specifiedDate != null">
|
|
824
|
- and DATE(cr.check_time) = DATE(#{specifiedDate})
|
|
|
|
|
|
824
|
+ and cr.check_time >= #{specifiedDate}
|
|
|
|
825
|
+ and cr.check_time <![CDATA[ < ]]> DATE_ADD(#{specifiedDate}, INTERVAL 1 DAY)
|
|
825
|
</if>
|
826
|
</if>
|
|
826
|
<if test="startDate != null and endDate != null">
|
827
|
<if test="startDate != null and endDate != null">
|
|
827
|
and (cr.check_time >= #{startDate}
|
828
|
and (cr.check_time >= #{startDate}
|