新建子账号 默认密码修改
This commit is contained in:
@@ -3467,7 +3467,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
addSubAccountDTO.setCreditsUsageLimit(BigDecimal.valueOf(dto.getCredisUsageLimit()));
|
addSubAccountDTO.setCreditsUsageLimit(BigDecimal.valueOf(dto.getCredisUsageLimit()));
|
||||||
}
|
}
|
||||||
addSubAccountDTO.setUserName(dto.getEmail().substring(0, dto.getEmail().indexOf("@")));
|
addSubAccountDTO.setUserName(dto.getEmail().substring(0, dto.getEmail().indexOf("@")));
|
||||||
addSubAccountDTO.setUserPassword(md5(parent.getOrganizationName().toLowerCase() + "abc"));
|
addSubAccountDTO.setUserPassword(md5("123456abc"));
|
||||||
addSubAccountDTO.setCreditsUsage(BigDecimal.ZERO);
|
addSubAccountDTO.setCreditsUsage(BigDecimal.ZERO);
|
||||||
// 添加用户
|
// 添加用户
|
||||||
addSubAccount(addSubAccountDTO);
|
addSubAccount(addSubAccountDTO);
|
||||||
@@ -3502,7 +3502,10 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
@Override
|
@Override
|
||||||
public Set<String> organizationNameSearch(String type, String name) {
|
public Set<String> organizationNameSearch(String type, String name) {
|
||||||
QueryWrapper<Account> qw = new QueryWrapper<>();
|
QueryWrapper<Account> qw = new QueryWrapper<>();
|
||||||
qw.lambda().like(Account::getOrganizationName, name);
|
if (!StringUtil.isNullOrEmpty(name)){
|
||||||
|
qw.lambda().like(Account::getOrganizationName, name);
|
||||||
|
}
|
||||||
|
|
||||||
if (type.equals("School")) {
|
if (type.equals("School")) {
|
||||||
Set<Long> schoolList = new HashSet<>();
|
Set<Long> schoolList = new HashSet<>();
|
||||||
schoolList.add(7L);
|
schoolList.add(7L);
|
||||||
|
|||||||
@@ -153,4 +153,4 @@ ollama.url=http://localhost:11434/api/chat
|
|||||||
|
|
||||||
google.client.id=29310152396-c44dcsoksjirhn7vbo29p8u8n0sg4qps.apps.googleusercontent.com
|
google.client.id=29310152396-c44dcsoksjirhn7vbo29p8u8n0sg4qps.apps.googleusercontent.com
|
||||||
google.client.secret=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
|
google.client.secret=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
|
||||||
google.redirect.uri=https://develop.aida.com.hk/api/third/party/auth/google_callback
|
google.redirect.uri=https://develop.api.aida.com.hk/api/third/party/auth/google_callback
|
||||||
Reference in New Issue
Block a user