xiaoyong931011
2023-09-11 6c338f9c80084f28abbdc12354ff1b6a036ffd93
优惠卷
1 files modified
2 ■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java 2 ●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java
@@ -212,7 +212,7 @@
                        BigDecimal costAmount = mallGoodsCoupon.getCostAmount();
                        BigDecimal realAmount = mallGoodsCoupon.getRealAmount();
                        if(amount.compareTo(costAmount) >= 0){
                            amount = amount.subtract(realAmount);
                            amount = (amount.subtract(realAmount).compareTo(BigDecimal.ZERO) > 0 ? amount : BigDecimal.ZERO);
                            orderItem.setMemberCouponId(memberCouponId);
                        }
                    }