|
@@ -151,7 +151,7 @@ public class ProjectService extends OrgBaseService {
|
|
|
response.setFail("该集团下不存在顶级公司,请创建!");
|
|
|
throw new OrgCURDRunTimeException(response);
|
|
|
}
|
|
|
- Company topCompany = Lists.newArrayList(iterator).stream().findFirst().get();
|
|
|
+ Company topCompany = companies.get(0);
|
|
|
String topCompanyId = topCompany.getId();
|
|
|
|
|
|
CompanyProjectRel topCpr = new CompanyProjectRel();
|