From 83848685c4951229ba0ee748ed71cbc10a128dc2 Mon Sep 17 00:00:00 2001 From: zhanghl <253316343@qq.com> Date: 星期二, 29 四月 2025 14:39:11 +0800 Subject: [PATCH] 气体管路-更新 计算计划开工日的逻辑 --- aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingRouteStatServiceImpl.java | 2 +- aps-modules/aps-core/src/main/resources/mapper/core/ApsGasPipingRouteStatMapper.xml | 2 +- aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingRouteStatServiceImpl.java b/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingRouteStatServiceImpl.java index 4defd34..0844907 100644 --- a/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingRouteStatServiceImpl.java +++ b/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsGasPipingRouteStatServiceImpl.java @@ -704,7 +704,7 @@ } // 鎵归噺鎻掑叆浠ユ彁楂樻�ц兘 if (!cptStateList.isEmpty()) { - int batchSize = 500; + int batchSize = 1000; int size = cptStateList.size(); for (int i = 0; i < size; i += batchSize) { int end = Math.min(i + batchSize, size); diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsGasPipingRouteStatMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsGasPipingRouteStatMapper.xml index 8ce9249..16fac43 100644 --- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsGasPipingRouteStatMapper.xml +++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsGasPipingRouteStatMapper.xml @@ -214,7 +214,7 @@ false as warning from aps_gas_piping_plan as pl left join aps_process_route as rt on pl.document_number = rt.work_order_no - where pl.document_number is not null and rt.work_order_no is not null + where pl.document_number is not null and rt.work_order_no is not null and pl.plan_end_day is not null order by rt.work_order_no asc, rt.process_number desc </select> diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml index e924c26..9f9a7ca 100644 --- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml +++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml @@ -144,7 +144,7 @@ pl.plan_end_day as order_plan_end_day from aps_plate_plan as pl left join aps_process_route as rt on pl.document_number = rt.work_order_no - where pl.document_number is not null and rt.work_order_no is not null + where pl.document_number is not null and rt.work_order_no is not null and pl.plan_end_day is not null order by rt.work_order_no asc, rt.process_number desc </select> <update id="removeOtherStat" parameterType="String"> -- Gitblit v1.9.3