|
@@ -115,13 +115,13 @@ a.salesman, a.operating_department as operatingDepartment, a.purchase_outsourcin
|
|
|
left join sy_packing_list_tailoring_item c
|
|
left join sy_packing_list_tailoring_item c
|
|
|
on a.tailoring_fabric_item_id = c.id
|
|
on a.tailoring_fabric_item_id = c.id
|
|
|
where a.del_flag = 0 and sy_shipping_order_item_id = #{id}
|
|
where a.del_flag = 0 and sy_shipping_order_item_id = #{id}
|
|
|
- group by c.group_id order by a.supplier,a.style_number,a.smail_po,a.english_name,a.unit_price
|
|
|
|
|
|
|
+ group by c.sy_packing_list_tailoring_id order by a.supplier,a.style_number,a.smail_po,a.english_name,a.unit_price
|
|
|
</if>
|
|
</if>
|
|
|
<if test='type == "面辅料"'>
|
|
<if test='type == "面辅料"'>
|
|
|
left join sy_packing_list_fabric_item c
|
|
left join sy_packing_list_fabric_item c
|
|
|
on a.tailoring_fabric_item_id = c.id
|
|
on a.tailoring_fabric_item_id = c.id
|
|
|
where a.del_flag = 0 and sy_shipping_order_item_id = #{id}
|
|
where a.del_flag = 0 and sy_shipping_order_item_id = #{id}
|
|
|
- group by a.group_id order by style_number,smail_po desc
|
|
|
|
|
|
|
+ group by a.sy_packing_list_fabric_id order by style_number,smail_po desc
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
@@ -154,7 +154,7 @@ round(sum(t.totalPrice),2) as totalPrice,round(sum(t.grossWeight),2) as grossWei
|
|
|
round(sum(t.volume),3) as volume,t.curr,t.dree,t.place,t.certificate,t.styleNumber,t.smailPo,t.orderNumber,t.ctns,t.kgs,t.cbm,pkOrg,t.factoryUnitPrice,
|
|
round(sum(t.volume),3) as volume,t.curr,t.dree,t.place,t.certificate,t.styleNumber,t.smailPo,t.orderNumber,t.ctns,t.kgs,t.cbm,pkOrg,t.factoryUnitPrice,
|
|
|
t.outerBoxLength,t.outerBoxWidth,t.outerBoxHeight,t.hod,t.unIt,t.emp,t.purchaseOutsourcingOrderNo,t.packId,t.salesman,t.earliestDeliveryDate,t.declarationUnit,
|
|
t.outerBoxLength,t.outerBoxWidth,t.outerBoxHeight,t.hod,t.unIt,t.emp,t.purchaseOutsourcingOrderNo,t.packId,t.salesman,t.earliestDeliveryDate,t.declarationUnit,
|
|
|
t.clientAbbreviation,t.pcGw,t.priceGw from (
|
|
t.clientAbbreviation,t.pcGw,t.priceGw from (
|
|
|
-select a.supplier,GROUP_CONCAT(a.id) as id,b.hs_code as hsCode,b.declaration_name as declarationName,b.english_product_name as englishProductName,sum(a.number) as number,a.unit_price as unitPrice,
|
|
|
|
|
|
|
+select a.garment_factory as garmentFactory,a.supplier,GROUP_CONCAT(a.id) as id,b.hs_code as hsCode,b.declaration_name as declarationName,b.english_product_name as englishProductName,sum(a.number) as number,a.unit_price as unitPrice,
|
|
|
sum(a.number*a.unit_price) as totalPrice,a.gross_weight as grossWeight,a.net_weight as netWeight,a.master_metering as pcs,a.volume as volume,a.elements_Id as elementsId,
|
|
sum(a.number*a.unit_price) as totalPrice,a.gross_weight as grossWeight,a.net_weight as netWeight,a.master_metering as pcs,a.volume as volume,a.elements_Id as elementsId,
|
|
|
'USD' as curr,'CHINA' as dree,'宁波其他/宁波象山县' as place,'照章征税' as certificate,a.style_number as styleNumber,a.smail_po as smailPo,a.box_number as boxNumber,
|
|
'USD' as curr,'CHINA' as dree,'宁波其他/宁波象山县' as place,'照章征税' as certificate,a.style_number as styleNumber,a.smail_po as smailPo,a.box_number as boxNumber,
|
|
|
a.order_number as orderNumber,a.client_abbreviation as clientAbbreviation,'PCS' as pacs,'CTNS' as ctns,'KGS' as kgs,'CBM' as cbm,c.salesman as salesman,'PC' as pcGw,'/PC' as priceGw,
|
|
a.order_number as orderNumber,a.client_abbreviation as clientAbbreviation,'PCS' as pacs,'CTNS' as ctns,'KGS' as kgs,'CBM' as cbm,c.salesman as salesman,'PC' as pcGw,'/PC' as priceGw,
|
|
@@ -166,7 +166,7 @@ on a.elements_Id = b.id
|
|
|
left join sy_packing_list_tailoring_item c
|
|
left join sy_packing_list_tailoring_item c
|
|
|
on a.tailoring_fabric_item_id = c.id
|
|
on a.tailoring_fabric_item_id = c.id
|
|
|
where a.sy_shipping_order_item_id =#{id}
|
|
where a.sy_shipping_order_item_id =#{id}
|
|
|
-group by c.group_id) t group by t.elementsId,t.styleNumber,t.smailPo,t.unitPrice order by t.styleNumber,t.smailPo desc
|
|
|
|
|
|
|
+group by c.group_id) t group by t.elementsId,t.styleNumber,t.smailPo,t.unitPrice order by t.garmentFactory,t.salesman,t.styleNumber
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -237,7 +237,7 @@ group by c.group_id) t group by t.elementsId,t.styleNumber,t.smailPo,t.unitPrice
|
|
|
<select id="qeuryItemInfo" resultType="org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrderItem">
|
|
<select id="qeuryItemInfo" resultType="org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrderItem">
|
|
|
|
|
|
|
|
select sum(t.grossWeight) as grossWeight,t.orderNumber,t.tailoringFabricItemId,t.pkOrg from (
|
|
select sum(t.grossWeight) as grossWeight,t.orderNumber,t.tailoringFabricItemId,t.pkOrg from (
|
|
|
-select a.purchase_outsourcing_order_no as orderNumber,a.gross_weight as grossWeight,
|
|
|
|
|
|
|
+select a.order_number as orderNumber,a.gross_weight as grossWeight,
|
|
|
a.tailoring_fabric_item_id as tailoringFabricItemId,a.pk_org as pkOrg
|
|
a.tailoring_fabric_item_id as tailoringFabricItemId,a.pk_org as pkOrg
|
|
|
from sy_shipping_order_item a
|
|
from sy_shipping_order_item a
|
|
|
left join sy_packing_list_tailoring_item c
|
|
left join sy_packing_list_tailoring_item c
|
|
@@ -248,7 +248,7 @@ where a.del_flag = 0 and a.sy_shipping_order_item_id = #{id} group by c.group_i
|
|
|
<select id="qeuryItemInfoTa" resultType="org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrderItem">
|
|
<select id="qeuryItemInfoTa" resultType="org.jeecg.modules.documents.syShippingOrder.entity.SyShippingOrderItem">
|
|
|
|
|
|
|
|
select sum(t.grossWeight) as grossWeight,t.orderNumber,t.tailoringFabricItemId,t.pkOrg from (
|
|
select sum(t.grossWeight) as grossWeight,t.orderNumber,t.tailoringFabricItemId,t.pkOrg from (
|
|
|
-select a.purchase_outsourcing_order_no as orderNumber,sum(a.gross_weight) as grossWeight,
|
|
|
|
|
|
|
+select a.order_number as orderNumber,sum(a.gross_weight) as grossWeight,
|
|
|
a.tailoring_fabric_item_id as tailoringFabricItemId,a.pk_org as pkOrg
|
|
a.tailoring_fabric_item_id as tailoringFabricItemId,a.pk_org as pkOrg
|
|
|
from sy_shipping_order_item a
|
|
from sy_shipping_order_item a
|
|
|
where a.del_flag = 0 and a.sy_shipping_order_item_id = #{id} group by a.group_id) t group by t.orderNumber
|
|
where a.del_flag = 0 and a.sy_shipping_order_item_id = #{id} group by a.group_id) t group by t.orderNumber
|