|
@@ -20,11 +20,12 @@
|
|
|
<select id="queryTailoring" resultType="org.jeecg.modules.documents.syShippingOrder.entity.VO.SyPackingList">
|
|
|
|
|
|
select a.id as id ,GROUP_CONCAT(b.id) as itemId, a.document_No as documentNo,a.order_number as orderNumber,a.depositary_receipt_no as depositaryReceiptNo,
|
|
|
- a.item_number as itemNumber,b.inventory_name as productName,b.distribution_point as distributionPoint,
|
|
|
- b.item_code as itemCode,b.starting_box_number as startingBoxNumber,b.end_case_number as endCaseNumber,
|
|
|
- b.colour as colour,b.pieces_box as piecesBox,b.box_number as boxNumber,b.total as total,b.outer_box_length as outerBoxLength,
|
|
|
- b.outer_box_width as outerBoxWidth,b.outer_box_height as outerBoxHeight,b.total_volume as totalVolume,b.total_net_weight as totalNetWeight,
|
|
|
- b.total_gross_weight as totalGrossWeight,'成衣' as readyFabric
|
|
|
+ a.item_number as itemNumber,b.inventory_name as inventoryName,b.distribution_point as distributionPoint,a.customer_abbreviation as customerAbbreviation,
|
|
|
+ b.item_code as itemCode,b.starting_box_number as startingBoxNumber,b.end_case_number as endCaseNumber,b.hod as preDeliveryDate,b.small_Po as smallPo,
|
|
|
+ b.colour as colour,b.pieces_box as piecesBox,b.box_number as boxNumber,b.total as total,b.outer_box_length as outerBoxLength,a.customer as customer,
|
|
|
+ b.outer_box_width as outerBoxWidth,b.outer_box_height as outerBoxHeight,sum(b.total_volume) as totalVolume,sum(b.total_net_weight) as totalNetWeight,b.spur_Or_Sub_Order as purOrSubOrder,
|
|
|
+ sum(b.total_gross_weight) as totalGrossWeight,'成衣' as readyFabric,a.memo as memo,b.salesman as salesman,b.factory_Unit_Price as factoryUnitPrice,sum(b.total_price) as totalPrice,
|
|
|
+ sum(b.plan_Quantity) as planQuantity,sum(b.actual_Packing_Qty) as actualPackingQty,a.container_code as containerCode,b.container_number as containerNumber
|
|
|
from sy_packing_list_tailoring a
|
|
|
left join sy_packing_list_tailoring_item b
|
|
|
on a.id = b.sy_packing_list_tailoring_id
|
|
@@ -35,9 +36,12 @@
|
|
|
|
|
|
<select id="queryFabric" resultType="org.jeecg.modules.documents.syShippingOrder.entity.VO.SyPackingList">
|
|
|
|
|
|
- select a.id as id ,GROUP_CONCAT(b.id) as itemId, a.document_No as documentNo,a.order_number as orderNumber,a.depositary_receipt_no as depositaryReceiptNo,
|
|
|
- b.inventory_name as productName,sum(b.Remaining_Quantity) as inventoryQuantity,
|
|
|
- b.inventory_Code as itemCode,
|
|
|
+ select a.id as id ,GROUP_CONCAT(b.id) as itemId, a.document_No as documentNo,a.order_number as orderNumber,
|
|
|
+ b.item_Number as itemNumber,a.customer_Abbreviation as customerAbbreviation,a.customer,b.small_Po as smallPo,b.distribution_Point as distributionPoint,
|
|
|
+ b.salesman as salesman,b.pur_Or_Sub_Order as purOrSubOrder,b.factory_Unit_Price as factoryUnitPrice,'0' as totalVolume,'0' as actualPackingQty,
|
|
|
+ a.depositary_receipt_no as depositaryReceiptNo,b.order_Type as orderType,sum(b.gross_weight) as totalGrossWeight,sum(b.total_Price) as totalPrice,
|
|
|
+ b.inventory_name as inventoryName,sum(b.inventory_quantity) as planQuantity,sum(b.net_weight) as totalNetWeight,a.container_Code as containerCode,
|
|
|
+ b.inventory_Code as itemCode,a.memo as memo,a.container_number as containerNumber,
|
|
|
b.colour as colour,
|
|
|
'面料' as readyFabric
|
|
|
from sy_packing_list_fabric a
|