huanghongfa
2021-01-20 6873ee2b98283d9a876dfc6e5d878094e5de61d9
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngStructOtherBuildServiceImpl.java
@@ -135,8 +135,10 @@
        buildTypdIds.forEach(aLong -> {
            if (!collect.contains(aLong)) {
                ComMngStructBuildTypeDO comMngStructBuildTypeDO = comMngStructBuildTypeDAO.selectById(aLong);
                if (!ObjectUtils.isEmpty(comMngStructBuildTypeDO)) {
                throw new ServiceException(comMngStructBuildTypeDO.getName()+"已经在使用无法删除");
            }
            }
        });
         comMngStructBuildTypeDAO.delete(new QueryWrapper<ComMngStructBuildTypeDO>().lambda().eq(ComMngStructBuildTypeDO::getCommunityId, communityId));
        comMngStructBuildTypeVOList.forEach(comMngStructBuildTypeVO -> {