|
|
@@ -2076,7 +2076,10 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
BigDecimal couponMoney = null;
|
|
|
BigDecimal payMoney = orderDon.getMoney();
|
|
|
BigDecimal needDeductMoney = payMoney;
|
|
|
- if (orderDon.getIsDp()) {
|
|
|
+ if (orderDon.getOriMoney() == null) {
|
|
|
+ orderDon.setOriMoney(payMoney);
|
|
|
+ }
|
|
|
+ if (orderDon.getIsDp() != null && orderDon.getIsDp()) {
|
|
|
needDeductMoney = needDeductMoney.subtract(orderDon.getDpMoney());
|
|
|
}
|
|
|
if (coupon.getType() == Coupon.Type.discount) {
|