|
@@ -49,7 +49,7 @@ d.terms_of_deliveryvalue as termsOfDeliveryvalue
|
|
|
select c.hs_code as hsCode,c.declaration_name as declarationName,a.id as id ,GROUP_CONCAT(DISTINCT b.id) as itemId,a.document_No as documentNo,a.create_by as createBy,
|
|
|
a.export_invoice_no as exportInvoiceNo,a.container_number as containerNumber,a.garment_Factory as garmentFactory,
|
|
|
b.supplier as supplier,a.plumbum_No as plumbumNo,a.customer_abbreviation as customerAbbreviation,b.account as acSetNo,
|
|
|
- case when b.u8_Pid is null then sum(b.actual_declared_quantity) else sum(b.gross_weight) end as Total,sum(b.actual_declared_quantity) as number,
|
|
|
+ case when b.u8_Pid is null then sum(b.actual_declared_quantity) else sum(b.gross_weight) end as Total,round(sum(b.net_weight),2) as number,
|
|
|
sum(b.rolls) as planQuantity,
|
|
|
b.item_Number as itemNumber,b.small_Po as smallPo,round(sum(b.gross_weight),2) as grossWeight,
|
|
|
round(sum(b.net_weight),2) as netWeight,'0' as totalVolume,b.distribution_Point as distributionPoint,
|
|
@@ -101,7 +101,7 @@ group by group_id order by style_number,smail_po desc
|
|
|
<select id="queryEelementMerge" resultType="org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrderItem">
|
|
|
|
|
|
select GROUP_CONCAT(a.id) as id,b.hs_code as hsCode,b.declaration_name as declarationName,b.english_product_name as englishProductName,sum(c.meter) as meter,sum(a.number) as number,a.unit_price as unitPrice,
|
|
|
-round(sum(a.number*a.unit_price),2) as totalPrice,round(sum(a.gross_weight),2) as grossWeight,round(sum(a.net_weight),2) as netWeight,a.master_metering as pcs,a.volume as volume,
|
|
|
+round(sum(a.number*a.unit_price),2) as totalPrice,round(sum(a.gross_weight),2) as grossWeight,round(sum(a.net_weight),2) as netWeight,'KG' as pcs,a.volume as volume,
|
|
|
'USD' as curr,'CHIAN' as dree,'宁波其他/宁波象山县' as place,'照章征税' as certificate,a.style_number as styleNumber,a.smail_po as smailPo,sum(a.box_number) as boxNumber,
|
|
|
a.order_number as orderNumber,a.client_abbreviation as clientAbbreviation,'CTNS' as ctns,'KGS' as kgs,'CBM' as cbm,b.declaration_unit as declarationUnit
|
|
|
from sy_shipping_order_item a
|