|
@@ -310,7 +310,7 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
|
|
|
for (ProductBomDetail productBomDetail : productBomDetailList) {
|
|
|
ProductInfo materialInfo = this.getById(productBomDetail.getMaterialId());
|
|
|
- if (ObjectUtil.equals(materialInfo.getClass(), 100)) {
|
|
|
+ if (ObjectUtil.equals(productBomDetail.getType(), 1)) {
|
|
|
|
|
|
BigDecimal multiply = length.multiply(width).multiply(materialInfo.getPrice());
|
|
|
materialPrice = materialPrice.add(multiply);
|
|
@@ -347,7 +347,7 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
for (ProductBomDetail productBomDetail : productBomDetailList) {
|
|
|
ProductInfo productInfo = this.getById(productBomDetail.getProductId());
|
|
|
|
|
|
- if (ObjectUtil.equals(materialInfo.getClass(), 100)) {
|
|
|
+ if (ObjectUtil.equals(productBomDetail.getType(), 1)) {
|
|
|
oldPrice = productInfo.getLength().multiply(productInfo.getWidth()).multiply(oldPrice);
|
|
|
newPrice = productInfo.getLength().multiply(productInfo.getWidth()).multiply(newPrice);
|
|
|
} else {
|