From bdd4ff4dfcc4167b1e2633d59ee7ad96ff29d234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Wed, 26 Jun 2024 17:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E9=80=9A=E6=B5=81=20=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=20=E5=AD=A3=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cache/gantry/QuarterlyTrafficGantryStatisticsCache.java | 2 +- .../cache/metrics/QuarterlyGantryMetricsStatisticsCache.java | 2 +- .../cache/section/QuarterlyTrafficSectionStatisticsCache.java | 2 +- .../tollstation/QuarterlyTrafficTollStationStatisticsCache.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/statistics/cache/gantry/QuarterlyTrafficGantryStatisticsCache.java b/zc-business/src/main/java/com/zc/business/statistics/cache/gantry/QuarterlyTrafficGantryStatisticsCache.java index 90b70d4d..c4cfeb1e 100644 --- a/zc-business/src/main/java/com/zc/business/statistics/cache/gantry/QuarterlyTrafficGantryStatisticsCache.java +++ b/zc-business/src/main/java/com/zc/business/statistics/cache/gantry/QuarterlyTrafficGantryStatisticsCache.java @@ -148,7 +148,7 @@ public class QuarterlyTrafficGantryStatisticsCache extends AbstractTrafficStatis */ private static String formatDate(Date date) { // 使用 DateUtil 工具类将 date 格式化为指定格式的字符串 - return DateUtil.format(date, "yyyy-MM-01"); + return DateUtil.format(DateUtil.beginOfQuarter(new Date()), "yyyy-MM-dd"); } } diff --git a/zc-business/src/main/java/com/zc/business/statistics/cache/metrics/QuarterlyGantryMetricsStatisticsCache.java b/zc-business/src/main/java/com/zc/business/statistics/cache/metrics/QuarterlyGantryMetricsStatisticsCache.java index 82848fa4..43773639 100644 --- a/zc-business/src/main/java/com/zc/business/statistics/cache/metrics/QuarterlyGantryMetricsStatisticsCache.java +++ b/zc-business/src/main/java/com/zc/business/statistics/cache/metrics/QuarterlyGantryMetricsStatisticsCache.java @@ -148,7 +148,7 @@ public class QuarterlyGantryMetricsStatisticsCache extends AbstractTrafficStatis */ private static String formatDate(Date date) { // 使用 DateUtil 工具类将 date 格式化为指定格式的字符串 - return DateUtil.format(date, "yyyy-MM-01"); + return DateUtil.format(DateUtil.beginOfQuarter(new Date()), "yyyy-MM-dd"); } } diff --git a/zc-business/src/main/java/com/zc/business/statistics/cache/section/QuarterlyTrafficSectionStatisticsCache.java b/zc-business/src/main/java/com/zc/business/statistics/cache/section/QuarterlyTrafficSectionStatisticsCache.java index 648a40c1..183c3bd5 100644 --- a/zc-business/src/main/java/com/zc/business/statistics/cache/section/QuarterlyTrafficSectionStatisticsCache.java +++ b/zc-business/src/main/java/com/zc/business/statistics/cache/section/QuarterlyTrafficSectionStatisticsCache.java @@ -143,7 +143,7 @@ public class QuarterlyTrafficSectionStatisticsCache extends AbstractTrafficStati */ private static String formatDate(Date date) { // 使用 DateUtil 工具类将 date 格式化为指定格式的字符串 - return DateUtil.format(date, "yyyy-MM-01"); + return DateUtil.format(DateUtil.beginOfQuarter(new Date()), "yyyy-MM-dd"); } } diff --git a/zc-business/src/main/java/com/zc/business/statistics/cache/tollstation/QuarterlyTrafficTollStationStatisticsCache.java b/zc-business/src/main/java/com/zc/business/statistics/cache/tollstation/QuarterlyTrafficTollStationStatisticsCache.java index a1e76b70..8c5cf0aa 100644 --- a/zc-business/src/main/java/com/zc/business/statistics/cache/tollstation/QuarterlyTrafficTollStationStatisticsCache.java +++ b/zc-business/src/main/java/com/zc/business/statistics/cache/tollstation/QuarterlyTrafficTollStationStatisticsCache.java @@ -148,7 +148,7 @@ public class QuarterlyTrafficTollStationStatisticsCache extends AbstractTrafficS */ private static String formatDate(Date date) { // 使用 DateUtil 工具类将 date 格式化为指定格式的字符串 - return DateUtil.format(date, "yyyy-MM-01"); + return DateUtil.format(DateUtil.beginOfQuarter(new Date()), "yyyy-MM-dd"); } }