【默认组织逻辑】
This commit is contained in:
parent
123dc43dc3
commit
78fadf8721
@ -69,7 +69,7 @@ public class OrgProjectService implements IOrgProjectService {
|
||||
if (projectInfo.getDefaultOrg() != null) { // 存在默认组织
|
||||
orgIdList = List.of(projectInfo.getDefaultOrg());
|
||||
} else { // 没有默认,则获取第一个
|
||||
orgIdList = List.of(orgProjectList.get(0).getOrgId());
|
||||
throw new SimulationException(SimulationExceptionType.System_Fault, "请设置默认组织");
|
||||
}
|
||||
}
|
||||
List<Org> orgList = queryOrgInfoList(orgIdList);
|
||||
|
Loading…
Reference in New Issue
Block a user