BUGFIX:订阅计划与子账号新增

This commit is contained in:
2025-12-18 14:52:12 +08:00
parent 9f7987306c
commit dfb34916e7

View File

@@ -3553,7 +3553,8 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
// 只有当前子账号数量为0时允许批量上传
QueryWrapper<Account> qw = new QueryWrapper<>();
qw.lambda().eq(Account::getSystemUser, 8)
.eq(Account::getOrganizationId, parent.getOrganizationId());
.eq(Account::getOrganizationId, parent.getOrganizationId())
.eq(Account::getSubscriptionPlanId, parent.getSubscriptionPlanId());
List<Account> accounts = accountMapper.selectList(qw);
if (!accounts.isEmpty()) {
throw new BusinessException("permit.bulk.creation", ResultEnum.PROMPT.getCode());