diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
index 194866080..9d378da18 100644
--- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml
@@ -246,10 +246,28 @@
@@ -259,14 +277,14 @@
from emis_tms_scan_record a,emis_waybill b
where a.del_flag='0' and b.del_flag='0' and a.main_bill_code=b.bill_code and b.bl_sign!='1'
and a.main_bill_code in(
- select distinct x.main_bill_code
- from emis_tms_scan_record x
- where x.del_flag='0' and x.scan_site_code=#{scanSiteCode}
- and x.scan_type=#{scanType}
- and x.pre_or_next_station_code=#{preOrNextStationCode}
- and x.scan_man_code=#{scanManCode}
- and x.scan_date = ]]> #{params.beginScanDate}
- and x.scan_date #{params.endScanDate}
+ select distinct x.main_bill_code
+ from emis_tms_scan_record x
+ where x.del_flag='0' and x.scan_site_code=#{scanSiteCode}
+ and x.scan_type=#{scanType}
+ and x.pre_or_next_station_code=#{preOrNextStationCode}
+ and x.scan_man_code=#{scanManCode}
+ and x.scan_date = ]]> #{params.beginScanDate}
+ and x.scan_date #{params.endScanDate}
)
GROUP BY a.main_bill_code