From c75c99d6520c8641519e398442d2d78f53ce94ee Mon Sep 17 00:00:00 2001 From: psh Date: Wed, 3 Jul 2024 14:23:24 +0800 Subject: [PATCH] fix --- .../nl/wms/ext/service/impl/AcsToWmsServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/service/impl/AcsToWmsServiceImpl.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/service/impl/AcsToWmsServiceImpl.java index f263e49..a4efdca 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/service/impl/AcsToWmsServiceImpl.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/service/impl/AcsToWmsServiceImpl.java @@ -44,10 +44,7 @@ import org.springframework.transaction.annotation.Transactional; import javax.annotation.PostConstruct; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; @@ -197,7 +194,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { List schBasePointList = schBasePointMapper.selectList(new LambdaQueryWrapper() .like(SchBasePoint::getPoint_code, ghs_device_code)); for (SchBasePoint schBasePoint : schBasePointList) { - List vehicleCodeList = Arrays.stream(schBasePoint.getVehicle_code().split(",")).collect(Collectors.toList()); + List vehicleCodeList=new ArrayList<>(); + if(ObjectUtil.isNotEmpty(schBasePoint.getVehicle_code())) { + vehicleCodeList = Arrays.stream(schBasePoint.getVehicle_code().split(",")).collect(Collectors.toList()); + } //组盘全部解绑 for (String vehicleCode : vehicleCodeList) { List schBaseVehiclematerialgroupList=vehiclematerialgroupService.list(new LambdaQueryWrapper()