yujian
2020-05-09 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64
fanli/src/main/java/com/yeshi/fanli/service/impl/config/HotSearchServiceImpl.java
@@ -6,6 +6,7 @@
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;
@@ -124,4 +125,13 @@
      return hotSearchMapper.countQuery(key, systemId, useType);
   }
   @Override
   @Cacheable(value = "crgCache", key = "'getHotSearchCache-' + #useType")
   public List<HotSearch> getHotSearchCache(Integer useType) {
      return hotSearchMapper.getHotSearchList(useType);
   }
}