充值兑换码相关接口

This commit is contained in:
张松 2025-10-21 17:09:38 +08:00
parent 0051c6e24e
commit 2542d664ca
2 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,6 @@ public class MkRechargeRedemptionConfigDTO implements Serializable {
/** /**
* 库存 * 库存
*/ */
private Integer stock; private Integer stock;
/** /**

View File

@ -139,6 +139,7 @@ public class MkRechargeRedemptionConfigServiceImpl extends ServiceImpl<MkRecharg
AssertUtil.isTrue(count > 0, "名称已存在"); AssertUtil.isTrue(count > 0, "名称已存在");
MkRechargeRedemptionConfig config = BeanUtil.copyProperties(dto, MkRechargeRedemptionConfig.class); MkRechargeRedemptionConfig config = BeanUtil.copyProperties(dto, MkRechargeRedemptionConfig.class);
config.setMainShopId(mainShopId); config.setMainShopId(mainShopId);
config.setStock(config.getTotal());
save(config); save(config);
ArrayList<MkRechargeRedemptionCode> codeArrayList = new ArrayList<>(); ArrayList<MkRechargeRedemptionCode> codeArrayList = new ArrayList<>();