| | |
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.apache.commons.beanutils.PropertyUtils;
|
| | | import org.springframework.cache.annotation.Cacheable;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.goods.HotSearchMapper;
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public List<HotSearch> listQuery(int start, int count, String key, Long systemId) throws Exception {
|
| | | public List<HotSearch> listQuery(int start, int count, String key, Long systemId, Integer useType) throws Exception {
|
| | |
|
| | | List<HotSearch> listObj = hotSearchMapper.listQuery(start, count, key, systemId);
|
| | | List<HotSearch> listObj = hotSearchMapper.listQuery(start, count, key, systemId, useType);
|
| | |
|
| | | if (listObj == null || listObj.size() == 0) {
|
| | | return null;
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public int countList(String key, Long systemId) {
|
| | | return hotSearchMapper.countQuery(key, systemId);
|
| | | public int countList(String key, Long systemId, Integer useType) {
|
| | | return hotSearchMapper.countQuery(key, systemId, useType);
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | @Cacheable(value = "crgCache", key = "'getHotSearchCache-' + #useType")
|
| | | public List<HotSearch> getHotSearchCache(Integer useType) {
|
| | | return hotSearchMapper.getHotSearchList(useType);
|
| | | }
|
| | |
|
| | | |
| | | |
| | | }
|