Browse Source

交通流 统计 季 修改

develop
王兴琳 5 months ago
parent
commit
bdd4ff4dfc
  1. 2
      zc-business/src/main/java/com/zc/business/statistics/cache/gantry/QuarterlyTrafficGantryStatisticsCache.java
  2. 2
      zc-business/src/main/java/com/zc/business/statistics/cache/metrics/QuarterlyGantryMetricsStatisticsCache.java
  3. 2
      zc-business/src/main/java/com/zc/business/statistics/cache/section/QuarterlyTrafficSectionStatisticsCache.java
  4. 2
      zc-business/src/main/java/com/zc/business/statistics/cache/tollstation/QuarterlyTrafficTollStationStatisticsCache.java

2
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");
}
}

2
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");
}
}

2
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");
}
}

2
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");
}
}

Loading…
Cancel
Save