Browse Source

修改实付金额大于等于优惠券的满减金额则可以使用问题

liu 2 năm trước cách đây
mục cha
commit
f4c1d4d320
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      mhotel/src/com/happy/service/impl/AppBookImplService.java

+ 2 - 2
mhotel/src/com/happy/service/impl/AppBookImplService.java

@@ -172,8 +172,8 @@ public class AppBookImplService implements AppBookService {
 //            满减金额
                     Double meetPrice = hotelCoupon.getMeetPrice();
                     BigDecimal meetPriceBigDecimal = new BigDecimal(meetPrice);
-
-                    if (meetPrice < totalPrice) {
+//             实际金额大于等于满减金额则可以使用
+                    if (meetPrice <= totalPrice) {
                         //            减免金额
                         Double deductionPrice = hotelCoupon.getDeductionPrice();
                         BigDecimal deductionPriceBigDecimal = new BigDecimal(deductionPrice);