diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
index 87b5b9ab9..5b6347b2a 100644
--- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
@@ -151,12 +151,13 @@
and scan_man_code=#{scanManCode}
- and scan_date = ]]> #{params.beginScanDate}
+ and a.scan_date = ]]> #{params.beginScanDate}
- and scan_date #{params.endScanDate}
+ and a.scan_date #{params.endScanDate}
+
and (
scan_site_code in (
@@ -196,10 +197,10 @@
limit 1
-
+
@@ -218,7 +219,7 @@
and id = #{id} and ( FIND_IN_SET(`order_sn`,#{orderSn}) or order_sn like concat('%', #{orderSn}, '%') )
- and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') )
+ and ( FIND_IN_SET(`bill_code`,#{billCode}) or FIND_IN_SET(`main_bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) and scan_type=#{scanType} and pre_or_next_station like concat('%', #{preOrNextStation}, '%')
@@ -265,12 +266,14 @@
and update_site like concat('%', #{updateSite}, '%') and create_site like concat('%', #{createSite}, '%')
+
- and scan_date = ]]> #{params.beginScanDate}
+ and scan_date = ]]> #{params.beginScanDate}
- and scan_date #{params.endScanDate}
+ and scan_date #{params.endScanDate}
+
and sign_date = ]]> #{params.beginSignDate}