parent
9a7a4f5b26
commit
421b42b36a
|
|
@ -184,6 +184,10 @@ public class PmsEnterpriseServiceImpl implements IPmsEnterpriseService {
|
|||
if (pmsEnterpriseMapper.selectPmsEnterpriseByGitlinkOrgId(gitlinkOrgId) != null) {
|
||||
throw new ServiceException("该组织已开通组织工作台,请勿重复开通");
|
||||
}
|
||||
boolean isContainCurrentUser = gitLinkUserToEnterpriseInputVoList.stream().anyMatch(x -> SecurityUtils.getUserId().equals(x.getUserId()));
|
||||
if (!isContainCurrentUser) {
|
||||
throw new ServiceException("开通组织工作台需保留当前操作用户");
|
||||
}
|
||||
checkGitlinkUserToEnterpriseVoList(gitLinkUserToEnterpriseInputVoList);
|
||||
PmsEnterprise pmsEnterprise = getPmsEnterpriseByGitlinkOrgId(gitlinkOrgId);
|
||||
return createEnterprise(pmsEnterprise, gitLinkUserToEnterpriseInputVoList);
|
||||
|
|
|
|||
Loading…
Reference in New Issue