fix(system): 修复超级管理员用户名设置错误

- 将超级管理员用户名从随机UUID改为固定的"superAdmin"
- 确保超级管理员账户标识一致性
- 便于后续权限管理和系统维护
This commit is contained in:
2026-04-27 09:25:36 +08:00
parent ed9d500e5d
commit 6a48299e12

View File

@@ -105,7 +105,7 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> impleme
// 添加超级管理员
User superAdmin = new User();
superAdmin.setUsername(CommonUtil.randomUUID16()); // 使用随机用户名
superAdmin.setUsername("superAdmin");
superAdmin.setNickname(company.getShortName());
superAdmin.setPhone(company.getPhone());
superAdmin.setEmail(company.getEmail());