left join ecss_hsCode h on detail.hs_code=h.HsCode and detail.site=h.Site and detail.hs_code_desc=h.hsCodeDesc and detail.brand=h.brand
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 detail.brand=h.brand and nh.bu_no=h.BuNo
where detail.site=#{site} and detail.declaration_no=#{declarationNo}