| | |
| | | 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.goods.SuperRecommendSpecialMapper;
|
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendSpecial;
|
| | | import com.yeshi.fanli.service.inter.goods.SuperRecommendSpecialService;
|
| | |
|
| | | @Service
|
| | | public class SuperRecommendSpecialServiceImpl implements SuperRecommendSpecialService {
|
| | |
|
| | | @Resource
|
| | | private SuperRecommendSpecialMapper superRecommendSpecialMapper;
|
| | | |
| | | @Cacheable(value="specialCache",key="#root.methodName+#id")
|
| | | public List<SuperRecommendSpecial> getSuperRecommendSpecialBySystemId(long systemId) {
|
| | | return superRecommendSpecialMapper.listBySystemId(systemId);
|
| | | }
|
| | |
|
| | | }
|
| | | 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.goods.SuperRecommendSpecialMapper; |
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendSpecial; |
| | | import com.yeshi.fanli.service.inter.goods.SuperRecommendSpecialService; |
| | | |
| | | @Service |
| | | public class SuperRecommendSpecialServiceImpl implements SuperRecommendSpecialService { |
| | | |
| | | @Resource |
| | | private SuperRecommendSpecialMapper superRecommendSpecialMapper; |
| | | |
| | | @Cacheable(value="specialCache",key="#root.methodName+#id") |
| | | public List<SuperRecommendSpecial> getSuperRecommendSpecialBySystemId(long systemId) { |
| | | return superRecommendSpecialMapper.listBySystemId(systemId); |
| | | } |
| | | |
| | | } |