|
@@ -206,9 +206,9 @@ public class PurchaseContractPdfServiceImpl implements IPurchaseContractPdfServi
|
|
|
//新产品集合
|
|
|
List<PurchaseContractProduct> newProducts = new ArrayList<>();
|
|
|
//总价
|
|
|
- BigDecimal totalAmount = new BigDecimal(0.00);
|
|
|
+ BigDecimal totalAmount = new BigDecimal("0.00");
|
|
|
//总数量
|
|
|
- Integer totalQuantity = 0;
|
|
|
+ int totalQuantity = 0;
|
|
|
if (CollectionUtils.isNotEmpty(products)) {
|
|
|
//list转map,key=合同产品表id,val=产品名称
|
|
|
productsMap = products.stream().collect(Collectors.toMap(PurchaseContractProduct::getId, PurchaseContractProduct::getProductName));
|