刘俊驰 3 ماه پیش
والد
کامیت
b3e3e7c647

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/UserOrderServiceImpl.java

@@ -315,7 +315,7 @@ public class UserOrderServiceImpl extends ServiceImpl<UserOrderDao, UserOrder> i
                         userOrderVo.setCardDiscountPrice(userOrderVo.getCardDiscountPrice().add(bigDecimal));
                     }
                     BigDecimal couponDecimal = decimalMap.get(EDiscountType.COUPON.name());
-                    if (bigDecimal != null) {
+                    if (couponDecimal != null) {
                         userOrderVo.setDiscountPrice(userOrderVo.getDiscountPrice().add(couponDecimal));
                     }
                 }