From c0c736534138865c00ec2a97d61f929abdd994e9 Mon Sep 17 00:00:00 2001 From: nixj Date: Fri, 28 Jun 2024 16:06:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=96=B0=E5=A2=9Enull=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/chint/manage/util/BaseUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }