BUGFIX:超管创建机构管理员
This commit is contained in:
@@ -1255,15 +1255,15 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
||||
|
||||
static {
|
||||
HikariConfig config = new HikariConfig();
|
||||
// config.setJdbcUrl("jdbc:mysql://code-create.com.hk:3306/db1nfvsgmjp3b8");
|
||||
// config.setUsername("uafqtz4gsvfrw");
|
||||
// config.setPassword("aida123456.");
|
||||
config.setJdbcUrl("jdbc:mysql://code-create.com.hk:3306/db1nfvsgmjp3b8");
|
||||
config.setUsername("uafqtz4gsvfrw");
|
||||
config.setPassword("aida123456.");
|
||||
// config.setJdbcUrl("jdbc:mysql://18.167.251.121:33008/aida");
|
||||
// config.setUsername("aida_con");
|
||||
// config.setPassword("123456");
|
||||
config.setJdbcUrl("jdbc:mysql://localhost:3306/code-create-local?serverTimezone=UTC");
|
||||
config.setUsername("root");
|
||||
config.setPassword("root");
|
||||
// config.setJdbcUrl("jdbc:mysql://localhost:3306/code-create-local?serverTimezone=UTC");
|
||||
// config.setUsername("root");
|
||||
// config.setPassword("root");
|
||||
config.addDataSourceProperty("cachePrepStmts", "true");
|
||||
config.addDataSourceProperty("prepStmtCacheSize", "250");
|
||||
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
|
||||
@@ -1643,7 +1643,8 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
||||
private List<Account> getValidAdminAccounts(long currentEpochMilli) {
|
||||
QueryWrapper<Account> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.lambda()
|
||||
.select(Account::getId, Account::getOrganizationName, Account::getCreditsUsageLimit)
|
||||
.select(Account::getId, Account::getOrganizationName,
|
||||
Account::getCreditsUsageLimit, Account::getSubAccountNum)
|
||||
.eq(Account::getSystemUser, 7) // 教育版管理员
|
||||
.gt(Account::getValidEndTime, currentEpochMilli); // 账号有效期内
|
||||
|
||||
|
||||
@@ -536,6 +536,7 @@ public class ConvenientInquiryServiceImpl extends ServiceImpl<QuestionnaireMappe
|
||||
|
||||
if (Objects.nonNull(accountAddDTO.getCredits())){
|
||||
account.setCredits(accountAddDTO.getCredits());
|
||||
account.setCreditsUsageLimit(accountAddDTO.getCredits());
|
||||
}
|
||||
if (Objects.nonNull(accountAddDTO.getSubAccountNum())){
|
||||
account.setSubAccountNum(accountAddDTO.getSubAccountNum());
|
||||
|
||||
Reference in New Issue
Block a user