fix: 优惠券使用数量不正确修改
This commit is contained in:
@@ -2089,6 +2089,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
TbActivateOutRecord tbActivateOutRecord = null;
|
||||
if (!couponInfo.getFullReductionCouponMap().isEmpty()) {
|
||||
TbUserCouponVo couponVo = couponInfo.getFullReductionCouponMap().values().stream().findFirst().orElse(null);
|
||||
couponVo.setCurrentUseNum(BigDecimal.ONE);
|
||||
finalAmount = finalAmount.subtract(couponVo.getDiscountAmount());
|
||||
orderInfo.setFullCouponDiscountAmount(couponVo.getDiscountAmount());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user