suochencheng %!s(int64=6) %!d(string=hai) anos
pai
achega
5951fde4ae

+ 2 - 2
src/main/java/com/izouma/awesomeadmin/service/impl/UserOrderServiceImpl.java

@@ -437,8 +437,8 @@ public class UserOrderServiceImpl implements UserOrderService {
                                 if (new Date().after(couponInfo.getBeginTime()) && new Date().before(couponInfo.getEndTime())) {//在可用时间内
                                     BigDecimal discountMoney = couponInfo.getDiscountMoney();
                                     BigDecimal limitMoney = couponInfo.getLimitMoney();
-                                    if (totlePrice.compareTo(limitMoney) > 0) {
-                                        dealPrice = totlePrice.subtract(discountMoney);
+                                    if (activityDealPrice.compareTo(limitMoney) > 0) {
+                                        dealPrice = activityDealPrice.subtract(discountMoney);
 
                                         userCoupon.setIsUsed("Y");
                                         userCouponMapper.updateByPrimaryKeySelective(userCoupon);