|
|
@@ -4094,7 +4094,7 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
BigDecimal discountPrice = price.multiply(renewUpgradePackage.getDiscount());
|
|
|
//去掉小数
|
|
|
if (orderDon.getGoodsId() == 75) {
|
|
|
- discountPrice = discountPrice.setScale(0);
|
|
|
+ discountPrice = discountPrice.divide(BigDecimal.valueOf(100), 0, RoundingMode.DOWN).multiply(BigDecimal.valueOf(100));
|
|
|
}
|
|
|
orderDon.setMoney(discountPrice);
|
|
|
|