diff --git a/src/main/java/com/chint/manage/util/BaseUtil.java b/src/main/java/com/chint/manage/util/BaseUtil.java index 228c35b6..5aa98d60 100644 --- a/src/main/java/com/chint/manage/util/BaseUtil.java +++ b/src/main/java/com/chint/manage/util/BaseUtil.java @@ -36,13 +36,13 @@ public class BaseUtil { public List getOrderIds(){ List routeIds = getRouteIds(); - if (routeIds.isEmpty()) return null; + if (routeIds==null||routeIds.isEmpty()) return null; return jdbcOrderDetailBasicRepository.findAllOrderId(routeIds); } public List getOrderNos(){ List routeIds = getRouteIds(); - if (routeIds.isEmpty()) return null; + if (routeIds==null||routeIds.isEmpty()) return null; return jdbcOrderDetailBasicRepository.findAllOrderNo(routeIds); }