|
@ -434,7 +434,7 @@ public class IDcGantryMetricsStatisticsDataServiceImpl |
|
|
private void recoveryMonthlyCache() { |
|
|
private void recoveryMonthlyCache() { |
|
|
// 构建查询条件,查询当前月份至今的每日交通数据
|
|
|
// 构建查询条件,查询当前月份至今的每日交通数据
|
|
|
LambdaQueryWrapper<DcGantryMetricsStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<DcGantryMetricsStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
queryWrapper.eq(DcGantryMetricsStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.DAY); |
|
|
queryWrapper.eq(DcGantryMetricsStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.DAY.getCode()); |
|
|
queryWrapper.between(DcGantryMetricsStatisticsData::getStatisticalDate, DateUtil.beginOfMonth(new Date()), new Date()); |
|
|
queryWrapper.between(DcGantryMetricsStatisticsData::getStatisticalDate, DateUtil.beginOfMonth(new Date()), new Date()); |
|
|
List<DcGantryMetricsStatisticsData> dcGantryMetricsStatisticsDataList = this.list(queryWrapper); |
|
|
List<DcGantryMetricsStatisticsData> dcGantryMetricsStatisticsDataList = this.list(queryWrapper); |
|
|
// 遍历查询结果,将每日数据添加到每月门架指标统计缓存中
|
|
|
// 遍历查询结果,将每日数据添加到每月门架指标统计缓存中
|
|
@ -448,7 +448,7 @@ public class IDcGantryMetricsStatisticsDataServiceImpl |
|
|
private void recoveryQuarterlyCache() { |
|
|
private void recoveryQuarterlyCache() { |
|
|
// 构建查询条件,查询当前季度至今的每月交通数据
|
|
|
// 构建查询条件,查询当前季度至今的每月交通数据
|
|
|
LambdaQueryWrapper<DcGantryMetricsStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<DcGantryMetricsStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
queryWrapper.eq(DcGantryMetricsStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.MONTH); |
|
|
queryWrapper.eq(DcGantryMetricsStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.MONTH.getCode()); |
|
|
queryWrapper.between(DcGantryMetricsStatisticsData::getStatisticalDate, DateUtil.beginOfQuarter(new Date()), new Date()); |
|
|
queryWrapper.between(DcGantryMetricsStatisticsData::getStatisticalDate, DateUtil.beginOfQuarter(new Date()), new Date()); |
|
|
List<DcGantryMetricsStatisticsData> dcGantryMetricsStatisticsDataList = this.list(queryWrapper); |
|
|
List<DcGantryMetricsStatisticsData> dcGantryMetricsStatisticsDataList = this.list(queryWrapper); |
|
|
// 遍历查询结果,将每月数据添加到每季度门架指标统计缓存
|
|
|
// 遍历查询结果,将每月数据添加到每季度门架指标统计缓存
|
|
@ -462,7 +462,7 @@ public class IDcGantryMetricsStatisticsDataServiceImpl |
|
|
private void recoveryYearlyCache() { |
|
|
private void recoveryYearlyCache() { |
|
|
// 构建查询条件,查询当前年份至今的每季度交通数据
|
|
|
// 构建查询条件,查询当前年份至今的每季度交通数据
|
|
|
LambdaQueryWrapper<DcGantryMetricsStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<DcGantryMetricsStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
queryWrapper.eq(DcGantryMetricsStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.QUARTER); |
|
|
queryWrapper.eq(DcGantryMetricsStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.QUARTER.getCode()); |
|
|
queryWrapper.between(DcGantryMetricsStatisticsData::getStatisticalDate, DateUtil.beginOfYear(new Date()), new Date()); |
|
|
queryWrapper.between(DcGantryMetricsStatisticsData::getStatisticalDate, DateUtil.beginOfYear(new Date()), new Date()); |
|
|
List<DcGantryMetricsStatisticsData> dcGantryMetricsStatisticsDataList = this.list(queryWrapper); |
|
|
List<DcGantryMetricsStatisticsData> dcGantryMetricsStatisticsDataList = this.list(queryWrapper); |
|
|
// 遍历查询结果,将每季度数据添加到每年门架指标统计缓存
|
|
|
// 遍历查询结果,将每季度数据添加到每年门架指标统计缓存
|
|
|