From c0fb6133ccc46d159db2751bab55323e56b00db9 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 07 十二月 2019 15:05:07 +0800 Subject: [PATCH] 消息通知 --- fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java index 85c946a..e360bd7 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java @@ -25,11 +25,10 @@ return appPageNotificationMapper.selectByType(type); } - @Cacheable(value = "configCache", key = "'getAppPageNotificationByType-'+#type") + @Cacheable(value = "configCache", key = "'getValidNotificationByTypeCache-'+#type") @Override - public AppPageNotification getAppPageNotificationByTypeCache(String type) { - - return appPageNotificationMapper.selectByType(type); + public AppPageNotification getValidNotificationByTypeCache(String type) { + return appPageNotificationMapper.selectValidByType(type); } @Override -- Gitblit v1.8.0