From 010ef2a907e66efd4702443c06cdd18f8a7ffa5b Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 30 十月 2024 14:08:53 +0800 Subject: [PATCH] IP归属地查询接口集成 --- src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java b/src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java index d001b28..e6e9407 100644 --- a/src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java +++ b/src/main/java/com/yeshi/buwan/service/imp/BanQuanService.java @@ -273,6 +273,10 @@ if (sql.endsWith("UNION ALL")) sql = sql.substring(0, sql.length() - 9); + if (StringUtil.isNullOrEmpty(sql)) { + return list; + } + try { List rlist = session.createSQLQuery(sql).list(); for (int i = 0; i < rlist.size(); i++) { -- Gitblit v1.8.0