feat: 霸王餐充值修改

This commit is contained in:
2024-11-05 15:17:14 +08:00
parent 12a802fe49
commit 018480994e

View File

@@ -460,6 +460,9 @@ public class PayService {
}
shouldPayAmount = shouldPayAmount.subtract(userCouponVo.getDiscountAmount());
if (shouldPayAmount.compareTo(BigDecimal.ZERO) < 0) {
shouldPayAmount = new BigDecimal("0.01");
}
TbShopCoupon tbShopCoupons = mpShopCouponMapper.selectById(userCouponVo.getCouponId());
if (tbShopCoupons == null) {