|
|
@ -793,7 +793,7 @@ left join ecss_CoDelNotifyHeader noHeader on a.site=noHeader.site and a.delNo=no |
|
|
|
|
|
|
|
|
<select id="exportCoDelPalletDetail" resultType="java.util.Map"> |
|
|
<select id="exportCoDelPalletDetail" resultType="java.util.Map"> |
|
|
select b.part_no,CONVERT(DECIMAL(20, 0),sum(b.qty)) as total_qty, |
|
|
select b.part_no,CONVERT(DECIMAL(20, 0),sum(b.qty)) as total_qty, |
|
|
CONVERT(DECIMAL(20, 0),sum(DISTINCT b.box_qty)) as box_qty, |
|
|
|
|
|
|
|
|
CONVERT(DECIMAL(20, 0),sum(DISTINCT a.box_qty)) as box_qty, |
|
|
CONVERT(DECIMAL(20, 0),sum(b.rolls)) as rolls, |
|
|
CONVERT(DECIMAL(20, 0),sum(b.rolls)) as rolls, |
|
|
CONVERT(DECIMAL(20, 2),sum(a.net_weight)) as net_weight, |
|
|
CONVERT(DECIMAL(20, 2),sum(a.net_weight)) as net_weight, |
|
|
CONVERT(DECIMAL(20, 2),sum(a.gross_weight)) as gross_weight, |
|
|
CONVERT(DECIMAL(20, 2),sum(a.gross_weight)) as gross_weight, |
|
|
@ -803,6 +803,12 @@ left join ecss_CoDelNotifyHeader noHeader on a.site=noHeader.site and a.delNo=no |
|
|
where a.site=#{site} and a.bu_no=#{buNo} and a.delNo=#{delNo} and b.site is not null GROUP BY b.part_no |
|
|
where a.site=#{site} and a.bu_no=#{buNo} and a.delNo=#{delNo} and b.site is not null GROUP BY b.part_no |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="exportCoDelBoxList" resultType="java.util.Map"> |
|
|
|
|
|
select CONVERT(DECIMAL(20, 0),sum(a.box_qty)) as box_qty |
|
|
|
|
|
from ecss_CoDelBoxList a |
|
|
|
|
|
where a.site=#{site} and a.bu_no=#{buNo} and a.delNo=#{delNo} GROUP BY a.item_no |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
<update id="updateEcssDeclarationHeader" > |
|
|
<update id="updateEcssDeclarationHeader" > |
|
|
update ecss_declaration_header set |
|
|
update ecss_declaration_header set |
|
|
upc=#{upc},so=#{so},origin=#{origin},pallet_weight=#{palletWeight},material=#{material}, |
|
|
upc=#{upc},so=#{so},origin=#{origin},pallet_weight=#{palletWeight},material=#{material}, |
|
|
|