BUGFIX:教育子账号新增-积分分配问题
This commit is contained in:
@@ -2246,7 +2246,6 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
}
|
}
|
||||||
subAccount.setUpdateDate(new Date());
|
subAccount.setUpdateDate(new Date());
|
||||||
updateById(subAccount);
|
updateById(subAccount);
|
||||||
updateById(adminAcc);
|
|
||||||
}
|
}
|
||||||
// 输入的账号已存在于其他组织
|
// 输入的账号已存在于其他组织
|
||||||
else if (Objects.nonNull(subAccount) && orgAccRole.contains(subAccount.getSystemUser())) {
|
else if (Objects.nonNull(subAccount) && orgAccRole.contains(subAccount.getSystemUser())) {
|
||||||
@@ -2279,7 +2278,6 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
// 未指定积分使用上限
|
// 未指定积分使用上限
|
||||||
else {
|
else {
|
||||||
handleSubAccCredits(subAccount, adminAcc);
|
handleSubAccCredits(subAccount, adminAcc);
|
||||||
updateById(adminAcc);
|
|
||||||
}
|
}
|
||||||
subAccount.setSystemUser(subUserRole);
|
subAccount.setSystemUser(subUserRole);
|
||||||
subAccount.setLanguage(Language.ENGLISH.name());
|
subAccount.setLanguage(Language.ENGLISH.name());
|
||||||
@@ -2290,6 +2288,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
subAccount.setOrganizationName(adminAcc.getOrganizationName());
|
subAccount.setOrganizationName(adminAcc.getOrganizationName());
|
||||||
accountMapper.insert(subAccount);
|
accountMapper.insert(subAccount);
|
||||||
}
|
}
|
||||||
|
updateById(adminAcc);
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user