diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml index a99058f00..b8b5fb85c 100644 --- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml @@ -183,7 +183,7 @@ from ( select DISTINCT a.scan_site_code,b.bill_code , b.bl_sign 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 a.bl_sub_bill='0' + where a.del_flag='0' and b.del_flag='0' and a.main_bill_code=b.bill_code and not EXISTS ( select 1 from emis_waybill_problem_info ewpi where ewpi.bill_code=b.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` in(151,173,170) ) @@ -229,7 +229,6 @@ emis_tms_scan_record a ,emis_waybill b WHERE a.del_flag = '0' and b.del_flag='0' - and a.bl_sub_bill = '0' and a.main_bill_code = b.bill_code and b.bl_sign = '0' and b.bill_code NOT IN ( SELECT bill_code FROM emis_waybill_problem_info ewpi WHERE ewpi.del_flag = '0' AND ewpi.`problem_type` IN ( 151, 173, 170 ) )