|
|
@@ -220,6 +220,13 @@ public class OrganizationManagerServiceImpl extends SuperService {
|
|
|
return ResultContent.buildFail(String.format("机构已绑定项目,不能删除"));
|
|
|
}
|
|
|
|
|
|
+ if (organization.getAuthType() == AuthType.Project) {
|
|
|
+ long bindOrgNumber = projectBindOrgServiceImpl.countProjectBindNumber(oid);
|
|
|
+ if (bindOrgNumber > 0) {
|
|
|
+ return ResultContent.buildFail(String.format("项目已绑定机构,不能删除"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//2. 删除机构
|
|
|
organizationDao.delete(organization);
|
|
|
|