Browse Source

代码还原

叶君翔 3 years ago
parent
commit
eca981d269

+ 1 - 1
lb-app/src/main/java/com/ydd/app/service/impl/ApiOrderNewServiceImpl.java

@@ -245,7 +245,7 @@ public class ApiOrderNewServiceImpl implements ApiOrderNewService {
         order.setCouponAmount(BigDecimal.ZERO);
         if (couponDto != null && !isDadaOrder) {
             if (couponDto.getType().equals(CouponTypeEnum.MAN_JIAN.type)) {
-                if (order.getTotalAmount().compareTo(couponDto.getLimitFee()) >= 0 && !isMine) {
+                if (order.getTotalAmount().add(couponDto.getMoney()).compareTo(couponDto.getLimitFee()) >= 0 && !isMine) {
                     log.info("进入满减券!");
                     order.setCouponAmount(couponDto.getMoney());
                     order.setCouponId(Long.valueOf(couponDto.getId()));