|
@@ -6,9 +6,9 @@
|
|
|
<select id="querySyPreAssembledPackingList" resultType="org.jeecg.modules.documents.letterDeposit.entity.VO.SyPreAssembledPackingListVo">
|
|
|
|
|
|
select a.id as id,b.id as itemId,a.item_number as itemNumber,a.pre_delivery_date as preDeliveryDate ,b.inventory_name as inventoryName,b.po_no as poNo,b.distribution_point as distributionPoint,
|
|
|
-a.memo,a.customer,b.colour,b.box_number as boxNumber,b.pur_or_sub_order as spurOrSubOrder,
|
|
|
-a.total_net_weight as totalNetWeight,a.order_type as orderType,b.total_quantity as totalQuantity
|
|
|
-a.total_gross_weight as totalGrossWeight,a.total_volume as totalVolume,a.total_price as totalPrice,b.factory_unit_price as factoryUnitPrice,
|
|
|
+a.memo,a.customer,b.colour,b.box_number as boxNumber,b.spur_Or_Sub_Order as spurOrSubOrder,
|
|
|
+b.total_net_weight as totalNetWeight,a.order_type as orderType,b.total_quantity as totalQuantity,
|
|
|
+b.total_gross_weight as totalGrossWeight,b.total_volume as totalVolume,b.total_price as totalPrice,b.factory_unit_price as factoryUnitPrice,
|
|
|
a.depositary_receipt_no as depositaryReceiptNo from sy_pre_assembled_packing_list a
|
|
|
left join sy_pre_assembled_packing_list_item b
|
|
|
on a.id = b.sy_pre_assembled_packing_list_id and b.del_flag = 0
|
|
@@ -65,8 +65,8 @@ on a.id = b.sy_pre_assembled_packing_list_id and b.del_flag = 0
|
|
|
<select id="mergeSyPreAssembledPackingList" resultType="org.jeecg.modules.documents.letterDeposit.entity.VO.SyPreAssembledPackingListVo">
|
|
|
|
|
|
select a.id as id,GROUP_CONCAT(b.id) as itemId,a.item_number as itemNumber,a.pre_delivery_date as preDeliveryDate ,b.inventory_name as inventoryName,b.po_no as poNo,b.distribution_point as distributionPoint,
|
|
|
-a.memo,a.customer,b.colour,sum(b.box_number) as boxNumber,b.pur_or_sub_order as spurOrSubOrder,
|
|
|
-sum(a.total_net_weight) as totalNetWeight,a.order_type as orderType,sum(b.total_quantity) as totalQuantity
|
|
|
+a.memo,a.customer,b.colour,sum(b.box_number) as boxNumber,b.spur_Or_Sub_Order as spurOrSubOrder,
|
|
|
+sum(a.total_net_weight) as totalNetWeight,a.order_type as orderType,sum(b.total_quantity) as totalQuantity,
|
|
|
sum(a.total_gross_weight) as totalGrossWeight,sum(a.total_volume) as totalVolume,a.total_price as totalPrice,b.factory_unit_price as factoryUnitPrice,
|
|
|
a.depositary_receipt_no as depositaryReceiptNo from sy_pre_assembled_packing_list a
|
|
|
left join sy_pre_assembled_packing_list_item b
|