diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/ghs/GHSQHTask.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/ghs/GHSQHTask.java index bb215a4..ae70517 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/ghs/GHSQHTask.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/ghs/GHSQHTask.java @@ -253,10 +253,10 @@ public class GHSQHTask extends AbstractTask { if (status.equals(TaskStatus.FINISHED)) { // 完成 StringBuilder group_id = new StringBuilder(); // 终点解锁,缓存区现在由一个点位改为三个点位,所以将物料存在010203三个位置上 - for(int i=1;i<=3;i++) { + List vehicleCodeList = Arrays.stream(startPointObj.getVehicle_code().split(",")).collect(Collectors.toList()); + for(int i=1;i<=vehicleCodeList.size();i++) { SchBasePoint point = pointService.getById(endPoint.substring(0,endPoint.length()-1)+i); point.setIng_task_code(""); - List vehicleCodeList = Arrays.stream(startPointObj.getVehicle_code().split(",")).collect(Collectors.toList()); point.setVehicle_code(vehicleCodeList.get(i-1)); point.setVehicle_type(startPointObj.getVehicle_type()); point.setVehicle_qty(1); @@ -265,7 +265,6 @@ public class GHSQHTask extends AbstractTask { } //固化室放料完毕后,将当前一整排都标记上物料信息,防止出现混放情况 pointMapper.updateVehicleType(endPointObj.getPoint_code().substring(0, endPointObj.getPoint_code().length() - 2), endPointObj.getVehicle_type()); - List vehicleCodeList = Arrays.stream(startPointObj.getVehicle_code().split(",")).collect(Collectors.toList()); for (int i=0;i()