|
|
@ -262,7 +262,7 @@ public class DcTollStationStatisticsDataImpl extends ServiceImpl<DcTollStationSt |
|
|
|
private void recoveryMonthlyCache() { |
|
|
|
// 构建查询条件,查询当前月份至今的每日交通数据
|
|
|
|
LambdaQueryWrapper<DcTollStationStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
queryWrapper.eq(DcTollStationStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.DAY); |
|
|
|
queryWrapper.eq(DcTollStationStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.DAY.getCode()); |
|
|
|
queryWrapper.between(DcTollStationStatisticsData::getStatisticalDate, DateUtil.beginOfMonth(new Date()), new Date()); |
|
|
|
List<DcTollStationStatisticsData> dcTrafficSectionDataList = this.list(queryWrapper); |
|
|
|
// 遍历查询结果,将每日数据添加到每月交通收费站统计缓存中
|
|
|
@ -276,7 +276,7 @@ public class DcTollStationStatisticsDataImpl extends ServiceImpl<DcTollStationSt |
|
|
|
private void recoveryQuarterlyCache() { |
|
|
|
// 构建查询条件,查询当前季度至今的每月交通数据
|
|
|
|
LambdaQueryWrapper<DcTollStationStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
queryWrapper.eq(DcTollStationStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.MONTH); |
|
|
|
queryWrapper.eq(DcTollStationStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.MONTH.getCode()); |
|
|
|
queryWrapper.between(DcTollStationStatisticsData::getStatisticalDate, DateUtil.beginOfQuarter(new Date()), new Date()); |
|
|
|
List<DcTollStationStatisticsData> dcTrafficSectionDataList = this.list(queryWrapper); |
|
|
|
// 遍历查询结果,将每月数据添加到每季度交通收费站统计缓存
|
|
|
@ -290,7 +290,7 @@ public class DcTollStationStatisticsDataImpl extends ServiceImpl<DcTollStationSt |
|
|
|
private void recoveryYearlyCache() { |
|
|
|
// 构建查询条件,查询当前年份至今的每季度交通数据
|
|
|
|
LambdaQueryWrapper<DcTollStationStatisticsData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
queryWrapper.eq(DcTollStationStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.QUARTER); |
|
|
|
queryWrapper.eq(DcTollStationStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.QUARTER.getCode()); |
|
|
|
queryWrapper.between(DcTollStationStatisticsData::getStatisticalDate, DateUtil.beginOfYear(new Date()), new Date()); |
|
|
|
List<DcTollStationStatisticsData> dcTrafficSectionDataList = this.list(queryWrapper); |
|
|
|
// 遍历查询结果,将每季度数据添加到每年交通收费站统计缓存
|
|
|
|