From 3d3a9b46b56ded968b1803456470b5ec31e43ce7 Mon Sep 17 00:00:00 2001 From: 喻健 <喻健@Admin> Date: 星期五, 30 十一月 2018 14:10:42 +0800 Subject: [PATCH] 调整推送内容以及队员返回字段 --- fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java index 3fda54d..85f9a1f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java @@ -8,6 +8,7 @@ import javax.annotation.Resource; import javax.transaction.Transactional; +import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; @@ -16,6 +17,7 @@ import com.yeshi.fanli.exception.banner.SwiperPictureException; import com.yeshi.fanli.service.inter.homemodule.SwiperPictureService; import com.yeshi.fanli.util.StringUtil; + import org.yeshi.utils.tencentcloud.COSManager; @Service @@ -124,5 +126,11 @@ return swiperPictureMapper.getMaxOrderByBannerID(bannerId); } + @Override + @Cacheable(value = "bannerCache", key = "'getByBannerCard-'+#card") + public List<SwiperPicture> getByBannerCard(String card) throws SwiperPictureException { + return swiperPictureMapper.getByBannerCard(card); + } + } -- Gitblit v1.8.0