From 1538ea228d8e76a467324048378f8186b215c9ac Mon Sep 17 00:00:00 2001 From: linfso Date: Sun, 21 Jul 2024 10:41:25 +0800 Subject: [PATCH] md --- .../mapper/EmisTmsScanRecordMapper.xml | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml index 4982e7594..8c85f2aa4 100644 --- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml @@ -115,25 +115,27 @@ and DATE(b.send_date)=#{params.sendDay} - - and b.send_site_code= #{sendSiteCode} + + and b.send_site_code= #{params.sendSiteCode} + + and b.send_center_code= #{params.sendCenterCode} + + + and b.dispatch_underling_site_code= #{params.dispatchUnderlingSiteCode} + + + and b.destination_center_code= #{params.destinationCenterCode} + and b.send_date = ]]> #{params.beginSendDate} and b.send_date #{params.endSendDate} - and b.send_site_code= #{sendSiteCode} - and b.send_center_code= #{sendCenterCode} - - and b.dispatch_underling_site_code= #{dispatchUnderlingSiteCode} - - - and b.destination_center_code= #{destinationCenterCode} - - + + and ( a.dispatch_underling_site_code in ( SELECT t1.site_code FROM (