package com.trafficaudit.freightforecast.dto; import lombok.Data; import java.util.ArrayList; import java.util.List; /** Result of the monthly report versus forecast comparison. */ @Data public class FreightForecastAnalysis { private String period; private int month; private String reportStage; private Long roundId; private Integer revisionNo; private String reportFileName; private String reportHistorySource; private String forecastHistorySource; private String historyThroughPeriod; private Integer historyCorrectionCount; private Double historyCorrectionDifferenceWan; private String belowHistorySource; private String sourceSummary; private double monthlyForecastWan; private double monthlyReportWan; private Double monthlyDiffRate; private Double previousMonthDiffRate; private Double monthlyReportYoy; private double cumulativeForecastWan; private double cumulativeReportWan; private Double cumulativeReportYoy; private Double cumulativeDiffRate; private double monthlyBelowTurnoverWan; private double cumulativeBelowTurnoverWan; private double currentTotalCumulativeWan; private double lastYearTotalCumulativeWan; private Double totalCumulativeYoy; private String belowResultType; private List cities = new ArrayList<>(); private List enterprises = new ArrayList<>(); private List warnings = new ArrayList<>(); private List sources = new ArrayList<>(); @Data public static class CityRow { private String city; private Double previousMonthDiffRate; private double monthlyForecastWan; private double monthlyReportWan; private Double monthlyReportYoy; private Double monthlyDiffRate; private double cumulativeReportWan; private Double cumulativeReportYoy; private double cumulativeForecastWan; private Double cumulativeDiffRate; } @Data public static class EnterpriseRow { private String city; private String enterpriseName; private double forecastTurnoverWan; private double reportedTurnoverWan; private Double diffRate; private String status; } @Data public static class SourceCoverage { private String metric; private String source; private String periodRange; private Integer rowCount; private String note; public SourceCoverage() { } public SourceCoverage(String metric, String source, String periodRange, Integer rowCount, String note) { this.metric = metric; this.source = source; this.periodRange = periodRange; this.rowCount = rowCount; this.note = note; } } }