|
@@ -123,6 +123,7 @@ public class ProduceOrderDetailServiceImpl extends ServiceImpl<ProduceOrderDetai
|
|
|
item.setProductLength(rawMaterial.getLength());
|
|
|
item.setProductWidth(rawMaterial.getWidth());
|
|
|
item.setProductHeight(rawMaterial.getHeight());
|
|
|
+ item.setProductColor(rawMaterial.getColor());
|
|
|
});
|
|
|
Map<Long, ContractProductBomVo> rawMaterialMap = contractProductBomVoList.stream().collect(Collectors.toMap(ContractProductBomVo::getContractProductId, Function.identity()));
|
|
|
|
|
@@ -150,6 +151,8 @@ public class ProduceOrderDetailServiceImpl extends ServiceImpl<ProduceOrderDetai
|
|
|
record.setProductLength(product.getLength());
|
|
|
record.setProductWidth(product.getWidth());
|
|
|
record.setProductHeight(product.getHeight());
|
|
|
+ record.setProductColor(product.getColor());
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -208,6 +211,7 @@ public class ProduceOrderDetailServiceImpl extends ServiceImpl<ProduceOrderDetai
|
|
|
detail.setProductLength(product.getLength());
|
|
|
detail.setProductWidth(product.getWidth());
|
|
|
detail.setProductHeight(product.getHeight());
|
|
|
+ detail.setProductColor(product.getColor());
|
|
|
});
|
|
|
|
|
|
contractProductService.attributeAssign(voList, ProductionOrderDetailVo::getContractDetailId, (detail, product) -> {
|
|
@@ -225,7 +229,7 @@ public class ProduceOrderDetailServiceImpl extends ServiceImpl<ProduceOrderDetai
|
|
|
item.setProductLength(product1.getLength());
|
|
|
item.setProductWidth(product1.getWidth());
|
|
|
item.setProductHeight(product1.getHeight());
|
|
|
-
|
|
|
+ item.setProductColor(product1.getColor());
|
|
|
});
|
|
|
Map<Long, List<ContractProductBomVo>> bomMap = cpBomVoList.stream().collect(Collectors.groupingBy(ContractProductBom::getContractProductId));
|
|
|
|
|
@@ -252,6 +256,7 @@ public class ProduceOrderDetailServiceImpl extends ServiceImpl<ProduceOrderDetai
|
|
|
detail.setRawMaterialLength(rawMaterialBom.getProductLength());
|
|
|
detail.setRawMaterialWidth(rawMaterialBom.getProductWidth());
|
|
|
detail.setRawMaterialHeight(rawMaterialBom.getProductHeight());
|
|
|
+ detail.setProductColor(rawMaterialBom.getProductColor());
|
|
|
}
|
|
|
|
|
|
detail.setContractProductBomList(otherBomMap.get(detail.getContractDetailId()));
|