Skip to content

Commit 235daef

Browse files
linlinjavagitee-org
authored andcommitted
!76 fix 优惠券指定商品或类型时,需要判断购物车里有
Merge pull request !76 from regox/N/A
2 parents 52b9665 + 6afa95a commit 235daef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

litemall-db/src/main/java/org/linlinjava/litemall/db/service/CouponVerifyService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ else if(timeType.equals(CouponConstant.TIME_TYPE_DAYS)) {
9595
}
9696
}
9797
//是否达到优惠券满减金额
98-
if (total.compareTo(coupon.getMin()) == -1) {
98+
if (goodsValueList.isEmpty() || total.compareTo(coupon.getMin()) == -1) {
9999
return null;
100100
}
101101
}

0 commit comments

Comments
 (0)