| | |
| | | package com.yeshi.fanli.service.impl.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.cache.annotation.Cacheable;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.homemodule.SuperRecommendBannerMapper;
|
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBanner;
|
| | | import com.yeshi.fanli.entity.system.BusinessSystem;
|
| | | import com.yeshi.fanli.service.inter.config.BusinessSystemService;
|
| | | import com.yeshi.fanli.service.inter.goods.SuperRecommendBannerService;
|
| | |
|
| | | @Service
|
| | | public class SuperRecommendBannerServiceImpl implements SuperRecommendBannerService {
|
| | |
|
| | | @Resource
|
| | | private SuperRecommendBannerMapper superRecommendBannerMapper;
|
| | |
|
| | | @Resource
|
| | | private BusinessSystemService businessSystemService;
|
| | |
|
| | | @Cacheable(value = { "bannerCache" }, key = "#root.methodName+#system.id")
|
| | | public List<SuperRecommendBanner> getSuperRecommendBannersBySystem(final BusinessSystem system) {
|
| | | List<SuperRecommendBanner> list = superRecommendBannerMapper.listBySystem(system.getId());
|
| | | return list;
|
| | | }
|
| | | }
|
| | | package com.yeshi.fanli.service.impl.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.yeshi.fanli.dao.mybatis.homemodule.SuperRecommendBannerMapper; |
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBanner; |
| | | import com.yeshi.fanli.entity.system.BusinessSystem; |
| | | import com.yeshi.fanli.service.inter.config.BusinessSystemService; |
| | | import com.yeshi.fanli.service.inter.goods.SuperRecommendBannerService; |
| | | |
| | | @Service |
| | | public class SuperRecommendBannerServiceImpl implements SuperRecommendBannerService { |
| | | |
| | | @Resource |
| | | private SuperRecommendBannerMapper superRecommendBannerMapper; |
| | | |
| | | @Resource |
| | | private BusinessSystemService businessSystemService; |
| | | |
| | | @Cacheable(value = { "bannerCache" }, key = "#root.methodName+#system.id") |
| | | public List<SuperRecommendBanner> getSuperRecommendBannersBySystem(final BusinessSystem system) { |
| | | List<SuperRecommendBanner> list = superRecommendBannerMapper.listBySystem(system.getId()); |
| | | return list; |
| | | } |
| | | } |