|
|
|
@ -543,15 +543,15 @@ create_by,create_date,update_by,update_date |
|
|
|
|
|
|
|
<select id="getAllWeight" resultType="com.xujie.sys.modules.ecss.entity.EcssCoDelPalletHeader"> |
|
|
|
select sum(gross_weight) as gross_weight ,sum(net_weight) as net_weight from ecss_CoDelBoxList |
|
|
|
where site =#{site} and delNo=#{delNo} |
|
|
|
where site =#{site} and delNo=#{delNo} and bu_no=#{buNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getDefaultEcssDeclarationDetailData" resultType="EcssDeclarationDetailData"> |
|
|
|
select #{site} as site, b.hsCode,b.hsCodeDesc as hsCodeDesc,sum(a.qty) as qty,sum(distinct c.Net_Weight) as NetWeight |
|
|
|
select #{site} as site, b.hsCode,b.hsCodeDesc as hsCodeDesc,sum(a.qty) as qty,sum( c.Net_Weight) as NetWeight |
|
|
|
,'CNY' as currency,'中国' as madeArea,#{destination} as destination,'南通其他' as sourceArea ,'照章征免' as levy |
|
|
|
from ecss_CoDelPalletDetail a left join part b on a.site=b.site and a.part_no=b.part_no |
|
|
|
left join ecss_CoDelBoxList c on a.site=c.site and a.delNo=c.delNo and a.seq_no=c.item_no |
|
|
|
where a.site =#{site} and a.delNo=#{delNo} |
|
|
|
where a.site =#{site} and a.delNo=#{delNo} and a.bu_no=#{buNo} |
|
|
|
GROUP BY b.hsCodeDesc,b.hsCode |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -560,7 +560,7 @@ create_by,create_date,update_by,update_date |
|
|
|
CONVERT(DECIMAL(20, 6),sum(a.ttl_amount)/sum( a.qty)) as unitPrice, |
|
|
|
a.currency as currency,'中国' as madeArea,#{destination} as destination,'南通其他' as sourceArea ,'照章征免' as levy from |
|
|
|
ecss_CoDelNotifyDetail a left join part b on a.site=b.site and a.part_no=b.part_no |
|
|
|
where a.site =#{site} and a.delNo=#{delNo} and a.qty>0 |
|
|
|
where a.site =#{site} and a.delNo=#{delNo} and a.qty>0 and a.bu_no=#{buNo} |
|
|
|
GROUP BY b.hsCodeDesc,b.hsCode,a.currency |
|
|
|
</select> |
|
|
|
|
|
|
|
|