Browse Source

解决断面数据车流量数据统计错误的问题

develop
xiepufeng 8 months ago
parent
commit
836986b241
  1. 4
      zc-business/src/main/java/com/zc/business/statistics/cache/DailyTrafficStatisticsCache.java
  2. 4
      zc-business/src/main/java/com/zc/business/statistics/cache/MonthlyTrafficStatisticsCache.java
  3. 4
      zc-business/src/main/java/com/zc/business/statistics/cache/QuarterlyTrafficStatisticsCache.java
  4. 4
      zc-business/src/main/java/com/zc/business/statistics/cache/YearlyTrafficStatisticsCache.java

4
zc-business/src/main/java/com/zc/business/statistics/cache/DailyTrafficStatisticsCache.java

@ -70,7 +70,9 @@ public class DailyTrafficStatisticsCache extends AbstractTrafficStatisticsCache
// 更新统计日期
dcTrafficSectionData.setStatisticalDate(dcTrafficSectionData.getStatisticalDate(), TrafficDataPeriodTypeEnum.DAY);
// 将新数据添加到数据列表中
// 移除旧数据
instance.getData().remove(dcTrafficSectionData);
// 添加数据
instance.getData().add(dcTrafficSectionData);
}

4
zc-business/src/main/java/com/zc/business/statistics/cache/MonthlyTrafficStatisticsCache.java

@ -70,7 +70,9 @@ public class MonthlyTrafficStatisticsCache extends AbstractTrafficStatisticsCach
// 更新统计日期
dcTrafficSectionData.setStatisticalDate(dcTrafficSectionData.getStatisticalDate(), TrafficDataPeriodTypeEnum.MONTH);
// 将新数据添加到数据列表中
// 移除旧数据
instance.getData().remove(dcTrafficSectionData);
// 添加数据
instance.getData().add(dcTrafficSectionData);
}

4
zc-business/src/main/java/com/zc/business/statistics/cache/QuarterlyTrafficStatisticsCache.java

@ -73,7 +73,9 @@ public class QuarterlyTrafficStatisticsCache extends AbstractTrafficStatisticsCa
// 更新统计日期
dcTrafficSectionData.setStatisticalDate(dcTrafficSectionData.getStatisticalDate(), TrafficDataPeriodTypeEnum.QUARTER);
// 将新数据添加到数据列表中
// 移除旧数据
instance.getData().remove(dcTrafficSectionData);
// 添加数据
instance.getData().add(dcTrafficSectionData);
}

4
zc-business/src/main/java/com/zc/business/statistics/cache/YearlyTrafficStatisticsCache.java

@ -73,7 +73,9 @@ public class YearlyTrafficStatisticsCache extends AbstractTrafficStatisticsCache
// 更新统计日期
dcTrafficSectionData.setStatisticalDate(dcTrafficSectionData.getStatisticalDate(), TrafficDataPeriodTypeEnum.YEAR);
// 将新数据添加到数据列表中
// 移除旧数据
instance.getData().remove(dcTrafficSectionData);
// 添加数据
instance.getData().add(dcTrafficSectionData);
}

Loading…
Cancel
Save