|
@@ -191,6 +191,65 @@
|
|
|
order by starting_Box_Number+0
|
|
|
</select>
|
|
|
|
|
|
+ <select id="queryIds" resultType="org.jeecg.modules.splt.entity.SyPackingListTailoringItem">
|
|
|
+ SELECT
|
|
|
+ id,
|
|
|
+ sy_packing_list_tailoring_id,
|
|
|
+ sy_pre_assembled_packing_list_id,
|
|
|
+ ac_set_no,
|
|
|
+ garment_factory,
|
|
|
+ hod,
|
|
|
+ style_no,
|
|
|
+ po_no,
|
|
|
+ item_code,
|
|
|
+ distribution_point,
|
|
|
+ prepack_sku,
|
|
|
+ size,
|
|
|
+ starting_box_number,
|
|
|
+ end_case_number,
|
|
|
+ colour,
|
|
|
+ pieces_box,
|
|
|
+ box_number,/*箱数*/
|
|
|
+ SUM(total) total,/*件数*/
|
|
|
+ SUM(plan_Quantity) planQuantity,/*件数*/
|
|
|
+ net_weight,
|
|
|
+ total_net_weight total_net_weight,/*总净重*/
|
|
|
+ gross_weight,
|
|
|
+ total_gross_weight total_gross_weight,/*总毛重*/
|
|
|
+ outer_box_length,
|
|
|
+ outer_Box_Width,
|
|
|
+ outer_Box_Height,
|
|
|
+ total_volume total_volume,/*总体积*/
|
|
|
+ net_weight_too net_weight_too,/*净净重*/
|
|
|
+ unit_price,
|
|
|
+ sum(total_price) total_price,/*总价*/
|
|
|
+ with_code,
|
|
|
+ inventory_name,
|
|
|
+ spur_or_sub_order,
|
|
|
+ factory_unit_price,/*成衣工厂*/
|
|
|
+ order_Number/*销售订单号号*/
|
|
|
+ master_Metering,/*计量单位*/
|
|
|
+ inventory_Code,/*存货编码*/
|
|
|
+ inventory_Ccode,/*区分成衣跟面辅料*/
|
|
|
+ supplier_Code,/*最底层供应商编码*/
|
|
|
+ supplier,/*最底层供应商名称*/
|
|
|
+ ompo_Account,/*采购委外账套号*/
|
|
|
+ ompo_Id,/*采购委外订单主表id*/
|
|
|
+ ompo_Id_Item,/*采购委外订单子表id*/
|
|
|
+ ymoney,/*佣金*/
|
|
|
+ plan_Size,/*计划尺码数量*/
|
|
|
+ remarks,/*备注*/
|
|
|
+ group_id
|
|
|
+ FROM sy_packing_list_tailoring_item
|
|
|
+ WHERE sy_packing_list_tailoring_id in
|
|
|
+ <foreach collection="list" item="value" index="index" open="(" separator="," close=")">
|
|
|
+ #{value}
|
|
|
+ </foreach>
|
|
|
+ AND del_flag = 0
|
|
|
+ GROUP BY group_id
|
|
|
+ order by starting_Box_Number+0
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="size" resultType="org.jeecg.modules.spapl.entity.SizeTable">
|
|
|
SELECT sy_packing_list_tailoring_item.size,alias,total quantity,box_Number,total/box_Number proportion,
|
|
|
sy_packing_list_tailoring_item.id itemId,num
|
|
@@ -211,6 +270,19 @@
|
|
|
ORDER BY num
|
|
|
</select>
|
|
|
|
|
|
+ <select id="sizeAlls" resultType="org.jeecg.modules.spapl.entity.SizeTable">
|
|
|
+ SELECT sy_packing_list_tailoring_item.size,alias,total quantity,box_Number,total/box_Number proportion,
|
|
|
+ sy_packing_list_tailoring_id itemId,num,group_id
|
|
|
+ FROM sy_packing_list_tailoring_item
|
|
|
+ LEFT JOIN sizetable ON sy_packing_list_tailoring_item.`size`=sizetable.`size`
|
|
|
+ OR sy_packing_list_tailoring_item.`size`=sizetable.`alias`
|
|
|
+ WHERE sy_packing_list_tailoring_id in
|
|
|
+ <foreach collection="list" item="value" index="index" open="(" separator="," close=")">
|
|
|
+ #{value}
|
|
|
+ </foreach>
|
|
|
+ ORDER BY num
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getList" parameterType="java.lang.String" resultType="org.jeecg.modules.splt.entity.SyPackingListTailoringItem">
|
|
|
SELECT
|
|
|
size,
|