From 87c7cd22c14c119d1888bb26683e812a4900e973 Mon Sep 17 00:00:00 2001 From: psh Date: Tue, 25 Jun 2024 10:06:52 +0800 Subject: [PATCH] fix --- .../wms/sch/task_manage/task/tasks/BPSLTask.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 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 41579bc..e76cbbb 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 @@ -196,13 +196,15 @@ public class BPSLTask extends AbstractTask { // 起点清空 // 起点解锁,当前三个点位全部清空 for(int i=1;i<=3;i++) { - SchBasePoint point = pointService.getById(endPoint.substring(0,endPoint.length()-1)+i); - point.setIng_task_code(""); - point.setVehicle_code("0"); - point.setVehicle_qty(0); - point.setUpdate_time(DateUtil.now()); - point.setIng_task_code(""); - pointService.update(point); + SchBasePoint point = pointService.getById(startPoint.substring(0,startPoint.length()-1)+i); + if(ObjectUtil.isNotEmpty(point)) { + point.setIng_task_code(""); + point.setVehicle_code("0"); + point.setVehicle_qty(0); + point.setUpdate_time(DateUtil.now()); + point.setIng_task_code(""); + pointService.update(point); + } } // if (!startPointObj.getPoint_code().startsWith("ZJBDJW")) { // startPointObj.setVehicle_qty(startPointObj.getVehicle_qty() - 1);