From 981c563b223ee69b47fc5db56b35c5959c30a625 Mon Sep 17 00:00:00 2001
From: wenwj <‘1106994300@qq.com>
Date: 星期五, 11 四月 2025 15:37:05 +0800
Subject: [PATCH] 工艺路线字段调整

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml
index 633c3af..ce3e188 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml
@@ -219,4 +219,56 @@
             #{id}
         </foreach>
     </delete>
+    <insert id="insertBatch" parameterType="java.util.List">
+        insert into aps_part_plan (
+        id,
+        master_planner,
+        week_day,
+        week_cycle,
+        main_part_number,
+        main_part_drawing_number,
+        customer,
+        business_type,
+        document_number,
+        requirement_type,
+        document_status,
+        item_number,
+        drawing_no,
+        version_number,
+        production_quantity,
+        good_products_quantity,
+        process_number,
+        work_center,
+        department,
+        plan_start_day,
+        plan_end_day,
+        standby_number,
+        standby_name,
+        standby_stock,
+        next_process_deparment,
+        is_suspended,
+        is_outsourcing,
+        account,
+        advanced_materials,
+        advanced_document_number,
+        advanced_requirement_day,
+        is_plan_complete,
+        is_stock_complete,
+        has_turnback,
+        has_risk,
+        plant
+        ) values
+        <foreach item="item" index="index" collection="list" separator=",">
+            (#{item.id},#{item.masterPlanner},#{item.weekDay},#{item.weekCycle}
+            ,#{item.mainPartNumber},#{item.mainPartDrawingNumber},#{item.customer}
+            ,#{item.businessType},#{item.documentNumber},#{item.requirementType}
+            ,#{item.documentStatus},#{item.itemNumber},#{item.drawingNo},#{item.versionNumber}
+            ,#{item.productionQuantity},#{item.goodProductsQuantity},#{item.processNumber}
+            ,#{item.workCenter},#{item.department},#{item.planStartDay},#{item.planEndDay}
+            ,#{item.standbyNumber},#{item.standbyName},#{item.standbyStock},#{item.nextProcessDeparment}
+            ,#{item.isSuspended},#{item.isOutsourcing},#{item.account},#{item.advancedMaterials}
+            ,#{item.advancedDocumentNumber},#{item.advancedRequirementDay},#{item.isPlanComplete}
+            ,#{item.isStockComplete},#{item.hasTurnback},#{item.hasRisk},#{item.plant})
+        </foreach>
+    </insert>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3