|
@@ -13,7 +13,6 @@
|
|
|
from sy_shipping_order a
|
|
|
left join sy_shipping_order_item b
|
|
|
on a.id = b.sy_shipping_order_item_id
|
|
|
- where a.del_flag = 0 and b.del_flag = 0
|
|
|
${ew.customSqlSegment}
|
|
|
</select>
|
|
|
|
|
@@ -25,7 +24,7 @@ a.item_number as itemNumber,a.customer_abbreviation as customerAbbreviation,b.ho
|
|
|
b.small_po as smallPo,b.distribution_point as distributionPoint,b.spur_Or_Sub_Order as purOrSubOrder,
|
|
|
b.plan_Quantity as number,b.box_number as planQuantity,sum(b.gross_weight) as grossWeight,sum(b.net_weight) as netWeight,
|
|
|
b.total_volume as totalVolume,a.container_code as containerCode,a.container_number as containerNumber,
|
|
|
-a.depositary_receipt_no as depositaryReceiptNo,a.garment_factory as garmentFactory,b.unit_price as price,
|
|
|
+a.depositary_receipt_no as depositaryReceiptNo,b.garment_factory as garmentFactory,b.unit_price as price,
|
|
|
b.total_price as totalPrice,a.create_by as createBy,b.salesman as salesman,b.sales_Department as salesDepartment,
|
|
|
c.english_product_name as englishProductName,'成衣' as readyFabric
|
|
|
from sy_packing_list_tailoring a
|
|
@@ -42,7 +41,7 @@ c.english_product_name as englishProductName,'成衣' as readyFabric
|
|
|
|
|
|
select a.id as id ,GROUP_CONCAT(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_printing_plant as supplierPrintingPlant,a.plumbum_No as plumbumNo,
|
|
|
+ b.supplier_printing_plant as supplierPrintingPlant,a.plumbum_No as plumbumNo,a.customer_abbreviation as customerAbbreviation,
|
|
|
case when b.u8_Pid is null then sum(b.inventory_quantity) else sum(b.gross_weight) end as Total,
|
|
|
b.item_Number as itemNumber,b.small_Po as smallPo,b.plan_Quantity as planQuantity,sum(b.gross_weight) as grossWeight,
|
|
|
sum(b.net_weight) as netWeight,sum(b.total_Volume) as totalVolume,b.distribution_Point as distributionPoint,
|