From ba3d099d66a7fe660d3a66a1ec0ac6c37167a426 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Fri, 23 Oct 2026 16:16:46 +0800 Subject: [PATCH] bu --- src/main/resources/mapper/ecss/CoDelMapper.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mapper/ecss/CoDelMapper.xml b/src/main/resources/mapper/ecss/CoDelMapper.xml index fb4e7e21..28b3be7d 100644 --- a/src/main/resources/mapper/ecss/CoDelMapper.xml +++ b/src/main/resources/mapper/ecss/CoDelMapper.xml @@ -1011,8 +1011,10 @@ create_by,create_date,update_by,update_date CONVERT(DECIMAL(20, 2),detail.total_price) as total_price,detail.currency,detail.made_area,detail.destination, detail.source_area,detail.levy,detail.hs_code,detail.hs_code_desc,h.hsCodeDescEn from ecss_declaration_detail detail - left join ecss_hsCode h on detail.hs_code=h.HsCode and detail.site=h.Site and detail.hs_code_desc=h.hsCodeDesc - where detail.site=#{site} and declaration_no=#{declarationNo} + left join ecss_declaration_header hdr on detail.site=hdr.site and detail.declaration_no=hdr.declaration_no + left join ecss_CoDelNotifyHeader nh on hdr.site=nh.site and hdr.delNo=nh.delNo + left join ecss_hsCode h on detail.hs_code=h.HsCode and detail.site=h.Site and detail.hs_code_desc=h.hsCodeDesc and nh.bu_no=h.BuNo + where detail.site=#{site} and detail.declaration_no=#{declarationNo}