From db07d457d27ec99e69351a3325a6fcf2cd2cc065 Mon Sep 17 00:00:00 2001 From: psh Date: Mon, 22 Jan 2024 13:57:42 +0800 Subject: [PATCH] =?UTF-8?q?phase4||6=E9=87=8D=E5=A4=8D=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E4=B8=8D=E9=87=8D=E5=A4=8D=E6=89=A3=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/nl/wms/sch/task_manage/task/tasks/BPSLTask.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/BPSLTask.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/BPSLTask.java index 5751135..95beb3b 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/BPSLTask.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/BPSLTask.java @@ -252,12 +252,13 @@ public class BPSLTask extends AbstractTask { }else{ schBaseTask.setPoint_code1(point.getPoint_code().replace("HCQ","QHQ")); } - //重算点位时把点位占用 - point.setIng_task_code(schBaseTask.getTask_code()); //如果是正极板对接位则直接减库存 - if ((point.getPoint_code().startsWith("ZJBDJW"))) { + if ((point.getPoint_code().startsWith("ZJBDJW"))&&!schBaseTask.getTask_code().equals(point.getIng_task_code())) { point.setVehicle_qty(point.getVehicle_qty() - 1); } + //重算点位时把点位占用 + point.setIng_task_code(schBaseTask.getTask_code()); + pointService.update(point); } }