From 56481656c7de11cdca69c1a7dd69db176ffd9ecd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 08 五月 2021 12:49:30 +0800 Subject: [PATCH] 华为屏蔽金币任务中的看海量视频,新增广告平台概率控制 --- 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