|
@@ -10,6 +10,7 @@ import org.jeecg.modules.adweb.dmp.mapper.GACountryReportMapper;
|
|
|
import org.jeecg.modules.adweb.dmp.service.IGACountryReportService;
|
|
|
import org.jeecg.modules.adweb.dmp.vo.report.CountryStatsVO;
|
|
|
import org.jeecg.modules.redis.CacheConfig;
|
|
|
+import org.jeecg.modules.redis.TTLCacheManager;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -30,7 +31,8 @@ public class GACountryReportServiceImpl extends ServiceImpl<GACountryReportMappe
|
|
|
@Override
|
|
|
@Cacheable(
|
|
|
cacheManager = CacheConfig.TTL_CACHE_MANAGER,
|
|
|
- cacheNames = "getCountryStats#" + 60 * 30)
|
|
|
+ cacheNames =
|
|
|
+ "getCountryStats" + TTLCacheManager.TTL_SPLITTER + 60 * 30)
|
|
|
public List<CountryStatsVO> getCountryStats(String siteCode, Date start, Date end) {
|
|
|
List<CountryStatsVO> countryStatsVOs =
|
|
|
gaCountryReportMapper.getCountryStats(siteCode, start, end);
|