Sfoglia il codice sorgente

巡检合格率全量数据

chenshudong 1 mese fa
parent
commit
ed67cf4667

+ 2 - 1
airport-check/src/main/resources/mapper/check/CheckLargeScreenMapper.xml

@@ -821,7 +821,8 @@
821 821
         left join check_user cu on (cu.source_id = cpi.id and cu.type = 'INSPECT_RECORDS_INSPECTION_ITEM_DETAILS')
822 822
         where 1 = 1
823 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 826
         </if>
826 827
         <if test="startDate != null and endDate != null">
827 828
             and (cr.check_time >= #{startDate}