refactor(tenant): 移除部门ID回退逻辑中的用户信息解析功能

- 删除了从登录用户info中解析部门ID的复杂逻辑
- 移除了对LoginUser.INFO_KEY_DEPT_IDS和相关公司信息的存储
- 简化了部门ID的获取流程,只保留请求头、请求属性和登录缓存的回退顺序
- 减少了不必要的JSON解析操作,提高性能
- 清理了相关的异常处理代码
This commit is contained in:
wuzongyong
2026-01-28 11:44:53 +08:00
parent 815958a138
commit 049fe83cdc
2 changed files with 0 additions and 22 deletions

View File

@@ -205,9 +205,6 @@ public class OAuth2TokenServiceImpl implements OAuth2TokenService {
.put(LoginUser.INFO_KEY_PHONE, user.getMobile())
.put(LoginUser.INFO_KEY_WORK_CODE, user.getWorkcode())
.put(LoginUser.INFO_KEY_POST_IDS, CollUtil.isEmpty(user.getPostIds()) ? "[]" : JsonUtils.toJsonString(user.getPostIds()))
.put(LoginUser.INFO_KEY_DEPT_IDS, CollUtil.isEmpty(user.getDeptIds()) ? "[]" : JsonUtils.toJsonString(user.getDeptIds()))
.put(LoginUser.INFO_KEY_COMPANY_IDS, CollUtil.isEmpty(user.getCompanyIds()) ? "[]" : JsonUtils.toJsonString(user.getCompanyIds()))
.put(LoginUser.INFO_KEY_COMPANY_DEPT_SET, CollUtil.isEmpty(user.getCompanyDeptInfos()) ? "[]" : JsonUtils.toJsonString(user.getCompanyDeptInfos()))
.build();
} else if (userType.equals(UserTypeEnum.MEMBER.getValue())) {
// 注意:目前 Member 暂时不读取,可以按需实现