Procházet zdrojové kódy

fix 优惠券续费车票

zoujiajian před 2 roky
rodič
revize
0bf5794dd1

+ 4 - 1
netflix-service/src/main/java/com/cyksj/service/order/impl/OrderDonServiceImpl.java

@@ -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) {