|
@@ -27,8 +27,10 @@ public class StatisticsProcessor implements Processor {
|
|
|
String projectId = exchange.getIn().getBody(String.class);
|
|
|
System.out.println("这里正在统计的是Project:" + projectId);
|
|
|
DPSelectPropertyResult propertyData = (DPSelectPropertyResult) exchange.getProperty("propertyData" + exchange.getExchangeId());
|
|
|
+ DPSelectPropertyResult facilityData = (DPSelectPropertyResult) exchange.getProperty("facilityData" + exchange.getExchangeId());
|
|
|
Map<String, Map<String, String>> infoValueMap = (Map<String, Map<String, String>>) exchange.getProperty("map"); // 信息点Code --> (厂商库在该信息点的值value --> vender DPID)
|
|
|
List<Map<String, Object>> propertyList = propertyData.getContent();
|
|
|
+ List<Map<String, Object>> facilityList = facilityData.getContent();
|
|
|
Map<String, VenderStatistics> venderStatisticsMap = new HashMap<>();
|
|
|
Map<String, Set<String>> contracts = new HashMap<>(); // 保险商统计供应合同数目使用
|
|
|
Map<String, Set<String>> warranties = new HashMap<>(); // 保险商统计供应合同数目使用
|
|
@@ -37,7 +39,11 @@ public class StatisticsProcessor implements Processor {
|
|
|
matchCountManufacturer(singleProperty, infoValueMap, manufacturerSign, venderStatisticsMap);
|
|
|
matchCountSupplier(singleProperty, infoValueMap, supplierSign, venderStatisticsMap, contracts);
|
|
|
matchCountInsurer(singleProperty, infoValueMap, insuranceSign, venderStatisticsMap, warranties);
|
|
|
- matchCountMaintainance(singleProperty, infoValueMap, maintainanceSign, venderStatisticsMap);
|
|
|
+ //
|
|
|
+ }
|
|
|
+ for(int i = 0; i < facilityList.size(); ++i){
|
|
|
+ Map<String, Object> singleFacility = facilityList.get(i);
|
|
|
+ matchCountMaintainance(singleFacility, infoValueMap, maintainanceSign, venderStatisticsMap);
|
|
|
}
|
|
|
addContractCount(venderStatisticsMap, contracts);
|
|
|
addContractCount(venderStatisticsMap, warranties);
|