feat: WorkspaceJoinType
使用int入参
This commit is contained in:
parent
25d6fb13a9
commit
036809191c
@ -19,6 +19,7 @@ import java.util.EnumSet;
|
||||
* @date 2023/10/13 17:55
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum WorkspaceJoinType implements IBaseCreateEnum<WorkspaceJoinType> {
|
||||
|
||||
PRIMARY_CONTRACTING_UNIT(1, "总包单位"),
|
||||
@ -30,7 +31,6 @@ public enum WorkspaceJoinType implements IBaseCreateEnum<WorkspaceJoinType> {
|
||||
ENT_GENERAL(7, "企业通用"),
|
||||
;
|
||||
@EnumValue
|
||||
@Getter
|
||||
@JsonValue
|
||||
private final Integer value;
|
||||
private final String desc;
|
||||
|
||||
@ -72,8 +72,11 @@ public class IdentityAuthReq {
|
||||
@NotNull
|
||||
private Long ouId;
|
||||
|
||||
/**
|
||||
* 使用{@link WorkspaceJoinType}
|
||||
*/
|
||||
@NotNull
|
||||
private WorkspaceJoinType workspaceJoinType;
|
||||
private Integer workspaceJoinType;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -329,7 +329,7 @@ public class TyrSaasAuthServiceImpl implements TyrSaasAuthService {
|
||||
userRoleInfoMap.setWorkspaceId(e.getWorkspaceId());
|
||||
userRoleInfoMap.setOuId(e.getOuId());
|
||||
userRoleInfoMap.setWorkspaceType(e.getWorkspaceType());
|
||||
userRoleInfoMap.setWorkspaceJoinType(e.getWorkspaceJoinType());
|
||||
userRoleInfoMap.setWorkspaceJoinType(WorkspaceJoinType.matchValue(e.getWorkspaceJoinType()));
|
||||
queryKey.putIfAbsent(KeyUtil.buildKeyBySeparator(e.getWorkspaceId(), e.getOuId()), userRoleInfoMap);
|
||||
});
|
||||
stopWatch.start("query role user relation");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user