|
@@ -545,10 +545,11 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
Map<String, List<RealGoodsSourceData>> collect = realGoodsSourceDataList.stream().collect(Collectors.groupingBy(RealGoodsSourceData::getLabelSource));
|
|
Map<String, List<RealGoodsSourceData>> collect = realGoodsSourceDataList.stream().collect(Collectors.groupingBy(RealGoodsSourceData::getLabelSource));
|
|
|
OrderDon.LabelSource[] values = OrderDon.LabelSource.values();
|
|
OrderDon.LabelSource[] values = OrderDon.LabelSource.values();
|
|
|
BigDecimal zero = BigDecimal.ZERO;
|
|
BigDecimal zero = BigDecimal.ZERO;
|
|
|
|
|
+ Integer orders = 0;
|
|
|
RealGoodsSourceData realGoodsSourceData = null;
|
|
RealGoodsSourceData realGoodsSourceData = null;
|
|
|
for (OrderDon.LabelSource sysSource : values) {
|
|
for (OrderDon.LabelSource sysSource : values) {
|
|
|
if (collect.get(sysSource.name()) == null) {
|
|
if (collect.get(sysSource.name()) == null) {
|
|
|
- realGoodsSourceData = new RealGoodsSourceData(sysSource.name(), zero);
|
|
|
|
|
|
|
+ realGoodsSourceData = new RealGoodsSourceData(sysSource.name(), orders, zero);
|
|
|
realGoodsSourceDataList.add(realGoodsSourceData);
|
|
realGoodsSourceDataList.add(realGoodsSourceData);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|