BUGFIX:订阅计划与子账号新增
This commit is contained in:
@@ -3553,7 +3553,8 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
// 只有当前子账号数量为0时允许批量上传
|
// 只有当前子账号数量为0时允许批量上传
|
||||||
QueryWrapper<Account> qw = new QueryWrapper<>();
|
QueryWrapper<Account> qw = new QueryWrapper<>();
|
||||||
qw.lambda().eq(Account::getSystemUser, 8)
|
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);
|
List<Account> accounts = accountMapper.selectList(qw);
|
||||||
if (!accounts.isEmpty()) {
|
if (!accounts.isEmpty()) {
|
||||||
throw new BusinessException("permit.bulk.creation", ResultEnum.PROMPT.getCode());
|
throw new BusinessException("permit.bulk.creation", ResultEnum.PROMPT.getCode());
|
||||||
|
|||||||
Reference in New Issue
Block a user