| | |
| | | Double aboveFreight = null; |
| | | Map<Integer, Double> h2032Buckets = h2032TonByCityMonth.get(city); |
| | | if (h2032Buckets != null) { |
| | | double ton; |
| | | if (cumulative) { |
| | | ton = 0.0; |
| | | double ton = 0.0; |
| | | for (int m = 1; m <= month; m++) ton += h2032Buckets.getOrDefault(m, 0.0); |
| | | } else { |
| | | ton = h2032Buckets.getOrDefault(month, 0.0); |
| | | } |
| | | aboveFreight = ton / 10000.0; |
| | | } else { |
| | | // 当月无规上记录 -> 留空(不再写 0);有记录(含真实 0 值)才写数 |
| | | Double ton = h2032Buckets.get(month); |
| | | aboveFreight = ton == null ? null : ton / 10000.0; |
| | | } |
| | | } |
| | | |
| | | FreightTurnoverImport ft = ftMap.get(city); |