|
@@ -114,13 +114,16 @@ a.salesman, a.operating_department as operatingDepartment, a.purchase_outsourcin
|
|
|
<if test='type == "成衣"'>
|
|
|
left join sy_packing_list_tailoring_item c
|
|
|
on a.tailoring_fabric_item_id = c.id
|
|
|
+ where a.del_flag = 0 and sy_shipping_order_item_id = #{id}
|
|
|
+ group by c.group_id order by style_number,smail_po desc
|
|
|
</if>
|
|
|
<if test='type == "面辅料"'>
|
|
|
left join sy_packing_list_fabric_item c
|
|
|
on a.tailoring_fabric_item_id = c.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
|
|
|
</if>
|
|
|
- where a.del_flag = 0 and sy_shipping_order_item_id = #{id}
|
|
|
-group by a.group_id order by style_number,smail_po desc
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
|
|
@@ -234,10 +237,12 @@ 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 sum(t.grossWeight) as grossWeight,t.orderNumber,t.tailoringFabricItemId,t.pkOrg from (
|
|
|
-select order_number as orderNumber,case when ready_fabric != '成衣' then sum(gross_weight) else gross_weight end as grossWeight,
|
|
|
-tailoring_fabric_item_id as tailoringFabricItemId,pk_org as pkOrg
|
|
|
-from sy_shipping_order_item
|
|
|
-where del_flag = 0 and sy_shipping_order_item_id = #{id} group by group_id) t group by t.orderNumber
|
|
|
+select a.purchase_outsourcing_order_no as orderNumber,a.gross_weight as grossWeight,
|
|
|
+a.tailoring_fabric_item_id as tailoringFabricItemId,a.pk_org as pkOrg
|
|
|
+from sy_shipping_order_item a
|
|
|
+left join sy_packing_list_tailoring_item c
|
|
|
+on a.tailoring_fabric_item_id = c.id
|
|
|
+where a.del_flag = 0 and a.sy_shipping_order_item_id = #{id} group by c.group_id) t group by t.orderNumber
|
|
|
</select>
|
|
|
|
|
|
|