BUGFIX:教育子账号新增-积分分配问题

This commit is contained in:
2025-08-25 09:18:07 +08:00
parent 9c6573f1a6
commit eebb790aeb

View File

@@ -2246,7 +2246,6 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
}
subAccount.setUpdateDate(new Date());
updateById(subAccount);
updateById(adminAcc);
}
// 输入的账号已存在于其他组织
else if (Objects.nonNull(subAccount) && orgAccRole.contains(subAccount.getSystemUser())) {
@@ -2279,7 +2278,6 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
// 未指定积分使用上限
else {
handleSubAccCredits(subAccount, adminAcc);
updateById(adminAcc);
}
subAccount.setSystemUser(subUserRole);
subAccount.setLanguage(Language.ENGLISH.name());
@@ -2290,6 +2288,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
subAccount.setOrganizationName(adminAcc.getOrganizationName());
accountMapper.insert(subAccount);
}
updateById(adminAcc);
return Boolean.TRUE;
}