feat: contextinfo 添加参建单位类型

add contextInfo set workspace join type
This commit is contained in:
TanJ 2023-10-23 10:57:05 +08:00
parent fb4965c198
commit 0c5514889d
2 changed files with 12 additions and 0 deletions

View File

@ -266,4 +266,11 @@ public class ContextInfo {
this.userInfoMap = userInfoMap;
}
public Integer getWorkspaceJoinType() {
return workspaceJoinType;
}
public void setWorkspaceJoinType(Integer workspaceJoinType) {
this.workspaceJoinType = workspaceJoinType;
}
}

View File

@ -315,6 +315,11 @@ public class ContextInfoBuilderAspect {
}catch (Throwable t) {
log.warn("fill workspaceType error, user identityId=" + userInfo.getIdentityId());
}
try {
contextInfo.setWorkspaceJoinType(Integer.parseInt(userinfoMap.get("workspaceJoinType").toString()));
}catch (Throwable t) {
log.warn("fill workspaceJoinType error, user identityId=" + userInfo.getIdentityId());
}
try {
fillLegacyGuess(contextInfo, userinfoMap);