|
|
@@ -149,11 +149,13 @@ public class ProjectBindOrgServiceImpl extends SuperService {
|
|
|
orgRelation.setMainOrganization(projectInfo);
|
|
|
orgRelation.setMainName(projectInfo.getName());
|
|
|
orgRelation.setAuthType(projectInfo.getAuthType());
|
|
|
+ orgRelation.setMainOid(projectInfo.getOid());
|
|
|
|
|
|
orgRelation.setRelOrganization(orgInfo);
|
|
|
orgRelation.setRelName(orgInfo.getName());
|
|
|
orgRelation.setRelAuthType(orgInfo.getAuthType());
|
|
|
orgRelation.setRelationType(OrganizationRelationType.ProjectBindOrg);
|
|
|
+ orgRelation.setRelOid(orgInfo.getOid());
|
|
|
|
|
|
orgRelation.setAboutOid(projectInfo.getOid());
|
|
|
orgRelation.setAboutAuthType(projectInfo.getAuthType());
|
|
|
@@ -174,7 +176,11 @@ public class ProjectBindOrgServiceImpl extends SuperService {
|
|
|
public ResultContent<Page<ProjectBindOrgModel>> orgPage(OrganizationRelationSearch param, Pageable pageable) {
|
|
|
// projectOid
|
|
|
Assert.hasText(param.getProjectOid(), "projectOid不能为空");
|
|
|
- param.setMainOid(param.getProjectOid());
|
|
|
+ Organization organization = organizationDao.findTopByOid(param.getProjectOid());
|
|
|
+ if (ObjectUtils.isEmpty(organization)) {
|
|
|
+ return ResultContent.buildFail(String.format(ResultMessage.DATA_NOT_EXIST, param.getProjectOid()));
|
|
|
+ }
|
|
|
+ param.setMainId(organization.getId());
|
|
|
Page<OrganizationRelation> page = organizationRelationDao.page(pageable, param);
|
|
|
return ResultContent.buildSuccess(PageEntityUtil.concurrent2PageModel(page, this::toModel));
|
|
|
}
|