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 0609bc7de..6187b6db5 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 @@ -396,9 +396,9 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService { } - //对nodeInfoVOList集合中的作业时间 按照 时间倒序排序 - nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed()); - + if(!nodeInfoVOList.isEmpty()){ + nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed()); + } result.setNodeInfoVOList(nodeInfoVOList); // 配送签收