From 56515ad97d0338aaf36741a112bc297c92031da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Tue, 25 Jun 2024 18:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E9=80=9A=E6=B5=81=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/service/impl/DcGantryStatisticsDataImpl.java | 6 +++--- .../service/impl/DcTollStationStatisticsDataImpl.java | 6 +++--- .../service/impl/DcTrafficSectionStatisticsServiceImpl.java | 6 +++--- .../impl/IDcGantryMetricsStatisticsDataServiceImpl.java | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcGantryStatisticsDataImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcGantryStatisticsDataImpl.java index 320b654a..88761dfd 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcGantryStatisticsDataImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcGantryStatisticsDataImpl.java @@ -165,7 +165,7 @@ public class DcGantryStatisticsDataImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(DcGantryStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.DAY); + queryWrapper.eq(DcGantryStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.DAY.getCode()); queryWrapper.between(DcGantryStatisticsData::getStatisticalDate, DateUtil.beginOfMonth(new Date()), new Date()); List dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每日数据添加到每月门架统计缓存中 @@ -179,7 +179,7 @@ public class DcGantryStatisticsDataImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(DcGantryStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.MONTH); + queryWrapper.eq(DcGantryStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.MONTH.getCode()); queryWrapper.between(DcGantryStatisticsData::getStatisticalDate, DateUtil.beginOfQuarter(new Date()), new Date()); List dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每月数据添加到每季度门架统计缓存 @@ -193,7 +193,7 @@ public class DcGantryStatisticsDataImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(DcGantryStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.QUARTER); + queryWrapper.eq(DcGantryStatisticsData::getPeriodType, TrafficDataPeriodTypeEnum.QUARTER.getCode()); queryWrapper.between(DcGantryStatisticsData::getStatisticalDate, DateUtil.beginOfYear(new Date()), new Date()); List dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每季度数据添加到每年门架统计缓存 diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcTollStationStatisticsDataImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcTollStationStatisticsDataImpl.java index 27aed6bb..41e83743 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcTollStationStatisticsDataImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcTollStationStatisticsDataImpl.java @@ -262,7 +262,7 @@ public class DcTollStationStatisticsDataImpl extends ServiceImpl 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 dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每日数据添加到每月交通收费站统计缓存中 @@ -276,7 +276,7 @@ public class DcTollStationStatisticsDataImpl extends ServiceImpl 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 dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每月数据添加到每季度交通收费站统计缓存 @@ -290,7 +290,7 @@ public class DcTollStationStatisticsDataImpl extends ServiceImpl 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 dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每季度数据添加到每年交通收费站统计缓存 diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficSectionStatisticsServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficSectionStatisticsServiceImpl.java index 3af297bb..fb55f927 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficSectionStatisticsServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficSectionStatisticsServiceImpl.java @@ -291,7 +291,7 @@ public class DcTrafficSectionStatisticsServiceImpl private void recoveryMonthlyCache() { // 构建查询条件,查询当前月份至今的每日交通数据 LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(DcTrafficSectionData::getPeriodType, TrafficDataPeriodTypeEnum.DAY); + queryWrapper.eq(DcTrafficSectionData::getPeriodType, TrafficDataPeriodTypeEnum.DAY.getCode()); queryWrapper.between(DcTrafficSectionData::getStatisticalDate, DateUtil.beginOfMonth(new Date()), new Date()); List dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每日数据添加到每月交通统计缓存 @@ -305,7 +305,7 @@ public class DcTrafficSectionStatisticsServiceImpl private void recoveryQuarterlyCache() { // 构建查询条件,查询当前季度至今的每月交通数据 LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(DcTrafficSectionData::getPeriodType, TrafficDataPeriodTypeEnum.MONTH); + queryWrapper.eq(DcTrafficSectionData::getPeriodType, TrafficDataPeriodTypeEnum.MONTH.getCode()); queryWrapper.between(DcTrafficSectionData::getStatisticalDate, DateUtil.beginOfQuarter(new Date()), new Date()); List dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每月数据添加到每季度交通统计缓存 @@ -319,7 +319,7 @@ public class DcTrafficSectionStatisticsServiceImpl private void recoveryYearlyCache() { // 构建查询条件,查询当前年份至今的每季度交通数据 LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(DcTrafficSectionData::getPeriodType, TrafficDataPeriodTypeEnum.QUARTER); + queryWrapper.eq(DcTrafficSectionData::getPeriodType, TrafficDataPeriodTypeEnum.QUARTER.getCode()); queryWrapper.between(DcTrafficSectionData::getStatisticalDate, DateUtil.beginOfYear(new Date()), new Date()); List dcTrafficSectionDataList = this.list(queryWrapper); // 遍历查询结果,将每季度数据添加到每年交通统计缓存 diff --git a/zc-business/src/main/java/com/zc/business/service/impl/IDcGantryMetricsStatisticsDataServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/IDcGantryMetricsStatisticsDataServiceImpl.java index fb17a98b..411f74cc 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/IDcGantryMetricsStatisticsDataServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/IDcGantryMetricsStatisticsDataServiceImpl.java @@ -434,7 +434,7 @@ public class IDcGantryMetricsStatisticsDataServiceImpl private void recoveryMonthlyCache() { // 构建查询条件,查询当前月份至今的每日交通数据 LambdaQueryWrapper 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()); List dcGantryMetricsStatisticsDataList = this.list(queryWrapper); // 遍历查询结果,将每日数据添加到每月门架指标统计缓存中 @@ -448,7 +448,7 @@ public class IDcGantryMetricsStatisticsDataServiceImpl private void recoveryQuarterlyCache() { // 构建查询条件,查询当前季度至今的每月交通数据 LambdaQueryWrapper 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()); List dcGantryMetricsStatisticsDataList = this.list(queryWrapper); // 遍历查询结果,将每月数据添加到每季度门架指标统计缓存 @@ -462,7 +462,7 @@ public class IDcGantryMetricsStatisticsDataServiceImpl private void recoveryYearlyCache() { // 构建查询条件,查询当前年份至今的每季度交通数据 LambdaQueryWrapper 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()); List dcGantryMetricsStatisticsDataList = this.list(queryWrapper); // 遍历查询结果,将每季度数据添加到每年门架指标统计缓存