|
|
@ -362,6 +362,10 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Override |
|
|
|
public void delCommunitySelfOrganization(DelCommunitySelfOrganizationFormDTO formDTO) { |
|
|
|
//存在未完成的需求,不能删除
|
|
|
|
if (icUserDemandRecDao.selectCountByServerId(formDTO.getOrgId()) > NumConstant.ZERO) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "存在未完成的服务", "存在未完成的服务,不能删除"); |
|
|
|
} |
|
|
|
baseDao.deleteById(formDTO.getOrgId()); |
|
|
|
personnelService.deleteByOrgId(formDTO.getOrgId()); |
|
|
|
} |
|
|
|