From b2269c4e491c89e456101d2b0a326961a73d10eb Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期五, 03 一月 2020 17:29:24 +0800 Subject: [PATCH] 帮助中心版本缓存调整 --- fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java b/fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java index e77179c..e536806 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/apph5/AppH5HelpCenterController.java @@ -67,13 +67,11 @@ if (pageId == null) pageId = 0L; + List<HelpCenter> resultList = new ArrayList<>(); List<HelpCenter> list = helpCenterService.listValid(pageId, pageSize, key, cid); - if (list == null) { - pageId = 0L; - list = new ArrayList<HelpCenter>(); - } else if (list.size() == 0) { + if (list == null || list.size() == 0) { pageId = 0L; } else { // 娣诲姞鍒楄〃 -- Gitblit v1.8.0