From 67c71869d3f0580607fbf36d853f28ada6e61b04 Mon Sep 17 00:00:00 2001 From: linfso Date: Mon, 24 Feb 2025 13:40:32 +0800 Subject: [PATCH] md --- .../src/main/resources/mapper/EmisTmsScanRecordMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml index b8b5fb85c..2ad466064 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 + where a.del_flag='0' and b.del_flag='0' and a.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,7 @@ 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.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 ) ) and a.scan_site_code=#{scanSiteCode}