兑换码优化

This commit is contained in:
张松
2025-10-22 11:20:23 +08:00
parent 77b487a060
commit 4247e019e4

View File

@@ -288,6 +288,7 @@ public class MkRedemptionConfigServiceImpl extends ServiceImpl<MkCouponRedemptio
MkRedemptionCode redemptionCode = codeService.getOne(new QueryWrapper().eq(MkRedemptionCode::getCode, dto.getCode()));
AssertUtil.isNull(redemptionCode, "兑换码不存在");
AssertUtil.isTrue(redemptionCode.getStatus() == 1, "兑换码已使用");
Long mainShopId = redemptionCode.getMainShopId();
enableConfigService.checkEnable(mainShopId, mainShopId, TableValueConstant.EnableConfig.Type.RECHARGE_REDEMPTION, true);
ShopUser shopUserInfo = shopUserService.getShopUserInfo(mainShopId, userId);