|
|
|
@ -288,8 +288,8 @@ public class RecycleOrderServiceImpl extends ServiceImpl<RecycleOrderMapper, Rec
|
|
|
|
|
if (ObjectUtil.isEmpty(latestPriceProduct)) {
|
|
|
|
|
throw new BusinessLogicException("产品价格信息未公布,请联系商户!");
|
|
|
|
|
}
|
|
|
|
|
BigDecimal recoveryPrice = Optional.ofNullable(latestPriceProduct.getRecoveryPrice()).orElse(new BigDecimal("0.00"));
|
|
|
|
|
rp.setActualRecoveryPrice(recoveryPrice);
|
|
|
|
|
// BigDecimal recoveryPrice = Optional.ofNullable(latestPriceProduct.getRecoveryPrice()).orElse(new BigDecimal("0.00"));
|
|
|
|
|
// rp.setActualRecoveryPrice(recoveryPrice);
|
|
|
|
|
});
|
|
|
|
|
this.recycleOrderProductService.createOrderProducts(recycleOrderProducts);
|
|
|
|
|
|
|
|
|
@ -420,8 +420,8 @@ public class RecycleOrderServiceImpl extends ServiceImpl<RecycleOrderMapper, Rec
|
|
|
|
|
if (ObjectUtil.isEmpty(latestPriceProduct)) {
|
|
|
|
|
throw new BusinessLogicException("产品价格信息未公布,请联系商户!");
|
|
|
|
|
}
|
|
|
|
|
BigDecimal recoveryPrice = Optional.ofNullable(latestPriceProduct.getRecoveryPrice()).orElse(new BigDecimal("0.00"));
|
|
|
|
|
rp.setActualRecoveryPrice(recoveryPrice);
|
|
|
|
|
// BigDecimal recoveryPrice = Optional.ofNullable(latestPriceProduct.getRecoveryPrice()).orElse(new BigDecimal("0.00"));
|
|
|
|
|
// rp.setActualRecoveryPrice(recoveryPrice);
|
|
|
|
|
});
|
|
|
|
|
this.recycleOrderProductService.saveOrderProducts(recycleOrderProducts);
|
|
|
|
|
|
|
|
|
@ -481,8 +481,8 @@ public class RecycleOrderServiceImpl extends ServiceImpl<RecycleOrderMapper, Rec
|
|
|
|
|
if (ObjectUtil.isEmpty(latestPriceProduct)) {
|
|
|
|
|
throw new BusinessLogicException("产品价格信息未公布,请联系商户!");
|
|
|
|
|
}
|
|
|
|
|
BigDecimal recoveryPrice = Optional.ofNullable(latestPriceProduct.getRecoveryPrice()).orElse(new BigDecimal("0.00"));
|
|
|
|
|
rp.setActualRecoveryPrice(recoveryPrice);
|
|
|
|
|
// BigDecimal recoveryPrice = Optional.ofNullable(latestPriceProduct.getRecoveryPrice()).orElse(new BigDecimal("0.00"));
|
|
|
|
|
// rp.setActualRecoveryPrice(recoveryPrice);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.recycleOrderProductService.saveOrderProducts(recycleOrderProducts);
|
|
|
|
|