소스 검색

代码还原

叶君翔 3 년 전
부모
커밋
eca981d269
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lb-app/src/main/java/com/ydd/app/service/impl/ApiOrderNewServiceImpl.java

+ 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()));