【默认组织逻辑】

This commit is contained in:
weizhihong 2022-10-13 16:45:59 +08:00
parent 123dc43dc3
commit 78fadf8721

View File

@ -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);