diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml index a6b53f142..0a917abcf 100644 --- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml @@ -137,10 +137,10 @@ 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 x.main_bill_code + select distinct x.main_bill_code from emis_tms_scan_record x where x.del_flag='0' and x.scan_site_code=#{scanSiteCode} - x.scan_type=#{scanType} + 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}