|
@@ -2409,9 +2409,9 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
data.put("costPrice", ehsdJson.getCostPrice());
|
|
|
data.put("costCurrency", ehsdJson.getCostCurrency());
|
|
|
//销售给指定客户近3条产品价格
|
|
|
- data.put("customerContractProductList", customerContractProductMap.get(productInfoId));
|
|
|
+ data.put("customerContractProductList", customerContractProductMap.getOrDefault(productInfoId, new ArrayList<>()));
|
|
|
//该产品近20条销售价格
|
|
|
- data.put("contractProductList", contractProductMap.get(productInfoId));
|
|
|
+ data.put("contractProductList", contractProductMap.getOrDefault(productInfoId, new ArrayList<>()));
|
|
|
|
|
|
reData.put(productInfoId, data);
|
|
|
}
|