From 13ec337a0d24485d9f006cfd44ea5d69c00540f3 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 11 一月 2019 16:21:22 +0800 Subject: [PATCH] 资金统计修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java | 2 ++ 1 files changed, 2 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 ac5dca1..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; @@ -126,6 +127,7 @@ } @Override + @Cacheable(value = "bannerCache", key = "'getByBannerCard-'+#card") public List<SwiperPicture> getByBannerCard(String card) throws SwiperPictureException { return swiperPictureMapper.getByBannerCard(card); } -- Gitblit v1.8.0