From 0c0184020a0a1966632314cb1815ff518266d483 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Tue, 4 Jun 2024 14:58:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E6=AC=A1=E7=BC=96=E8=BE=91=E5=8D=87?= =?UTF-8?q?=E7=BA=A72?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../op/plan/service/impl/ProOrderWorkorderServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java index 04d01408..1a28b5a3 100644 --- a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java +++ b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java @@ -1173,11 +1173,11 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService { if(proOrderWorkorderBatch.getNewBatchQuantity() != null){ Long newBatchQuantity = proOrderWorkorderBatch.getNewBatchQuantity(); - if(m==0 || m== workOrders.size()-1){ + if(m==0){ // 设置子工单数量 batch.setBatchQuantity(newBatchQuantity); }else{ - batch.setBatchQuantity(workOrders.get(m+1).getUmrez() + batch.setBatchQuantity(workOrders.get(m-1).getUmrez() .multiply(new BigDecimal(newBatchQuantity)).longValue()); } } @@ -1219,7 +1219,7 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService { // 设置子工单数量 batch.setNewBatchQuantity(newBatchQuantity); }else{ - batch.setNewBatchQuantity(workOrders.get(m+1).getUmrez() + batch.setNewBatchQuantity(workOrders.get(m-1).getUmrez() .multiply(new BigDecimal(newBatchQuantity)).longValue()); } }