|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
<mapper namespace="com.heai.modules.production.dao.PrintLabelRecordMapper"> |
|
|
|
<select id="handlerPrintBoxLabel" resultType="java.util.Map"> |
|
|
|
Select '*' as batchNo |
|
|
|
Select D.DelNotifyNo as batchNo |
|
|
|
, '' as printerName |
|
|
|
, 'N' as status |
|
|
|
, D.DelnotifyNo as orderRef1 |
|
|
|
@ -24,7 +24,7 @@ |
|
|
|
, 1 as printQty |
|
|
|
, REPLACE(Address_E + ' Phone:' + S.PhoneNo + ' Email:' + S.Email, CHAR(13) + CHAR(10), |
|
|
|
'') as siteDetail |
|
|
|
, SiteName as siteName |
|
|
|
, SiteName_E as siteName |
|
|
|
, (case |
|
|
|
when C.CustomerGroup = 'TBC' then CA.EndCustOurVendorCode |
|
|
|
else C.OurVendorCode end) as endCustVendorCode |
|
|
|
@ -45,7 +45,7 @@ |
|
|
|
and H.SeqNo <= #{boxNum} |
|
|
|
and #{boxNum} > 0 |
|
|
|
Union all |
|
|
|
Select '*' as batchNo |
|
|
|
Select D.DelNotifyNo as batchNo |
|
|
|
, '' as printerName |
|
|
|
, 'N' as status |
|
|
|
, D.DelnotifyNo as orderRef1 |
|
|
|
@ -67,7 +67,7 @@ |
|
|
|
, 1 as printQty |
|
|
|
, REPLACE(Address_E + ' Phone:' + S.PhoneNo + ' Email:' + S.Email, CHAR(13) + CHAR(10), |
|
|
|
'') as siteDetail |
|
|
|
, SiteName as siteName |
|
|
|
, SiteName_E as siteName |
|
|
|
, (case |
|
|
|
when C.CustomerGroup = 'TBC' then CA.EndCustOurVendorCode |
|
|
|
else C.OurVendorCode end) as endCustVendorCode |
|
|
|
|