From 7e1e419cb28dfb57fd5efc940f0b43830deb0e57 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Fri, 10 Jan 2025 17:01:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=A7=E5=B1=8F=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datasharing/service/impl/LogpmDataSearchServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java b/blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java index 882e71a63..5afbb49ad 100644 --- a/blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java +++ b/blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java @@ -412,6 +412,10 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService { nodeInfoVO.setOperateName("入库"); nodeInfoVO.setOperateWarehouseName(departureWarehouseName); List distributionParcelListEntities = groupedByWarehouse.get(departureWarehouseName); + if(distributionParcelListEntities==null || distributionParcelListEntities.isEmpty()){ + return null; + } + // 获取第一个时间 nodeInfoVO.setOperateTime(distributionParcelListEntities.get(0).getCreateTime()); nodeInfoVO.setOperateNumber(distributionParcelListEntities.size() + "/" + totalCount);