|
|
@ -277,6 +277,11 @@ |
|
|
update ecss_CoDelNotifyDetail set surplus_qty=0 where site=#{site} and delNo=#{delNo} |
|
|
update ecss_CoDelNotifyDetail set surplus_qty=0 where site=#{site} and delNo=#{delNo} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<update id="restoreEcssDelDetailSurplusQty" > |
|
|
|
|
|
update ecss_CoDelNotifyDetail set surplus_qty=qty |
|
|
|
|
|
where site=#{site} and delNo=#{delNo} and status != '取消发货' |
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
<update id="changeEcssDelStatus"> |
|
|
<update id="changeEcssDelStatus"> |
|
|
update ecss_CoDelNotifyHeader set notify_status=#{notifyStatus},walMartOrderFlag=#{walMartOrderFlag}, |
|
|
update ecss_CoDelNotifyHeader set notify_status=#{notifyStatus},walMartOrderFlag=#{walMartOrderFlag}, |
|
|
fscFlag=#{fscFlag},boxSizeFlag=#{boxSizeFlag} where site=#{site} and delNo=#{delNo} |
|
|
fscFlag=#{fscFlag},boxSizeFlag=#{boxSizeFlag} where site=#{site} and delNo=#{delNo} |
|
|
@ -881,7 +886,7 @@ left join ecss_CoDelNotifyHeader noHeader on a.site=noHeader.site and a.delNo=no |
|
|
|
|
|
|
|
|
<select id="exportDeclarationDetail" resultType="java.util.Map"> |
|
|
<select id="exportDeclarationDetail" resultType="java.util.Map"> |
|
|
select detail.site,detail.declaration_no,detail.item_no, |
|
|
select detail.site,detail.declaration_no,detail.item_no, |
|
|
CONVERT(DECIMAL(20, 0), detail.qty) as qty,isnull(h.unit,'') as qty_unit,'kg' as weight_unit, |
|
|
|
|
|
|
|
|
CONVERT(DECIMAL(20, 6), detail.qty) as qty,isnull(h.unit,'') as qty_unit,'kg' as weight_unit, |
|
|
CONVERT(DECIMAL(20, 2),detail.net_weight) as net_weight,CONVERT(DECIMAL(20, 6),detail.unit_price) as unit_price, |
|
|
CONVERT(DECIMAL(20, 2),detail.net_weight) as net_weight,CONVERT(DECIMAL(20, 6),detail.unit_price) as unit_price, |
|
|
CONVERT(DECIMAL(20, 2),detail.total_price) as total_price,detail.currency,detail.made_area,detail.destination, |
|
|
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 |
|
|
detail.source_area,detail.levy,detail.hs_code,detail.hs_code_desc,h.hsCodeDescEn |
|
|
|