lidongdong
2022-10-08 02d603e3816c355c538f3cbcb93ba983331305f4
修改组织机构删除接口
1个文件已修改
9 ■■■■■ 已修改文件
flower_city/src/main/java/com/dg/core/controller/OrganizationController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
flower_city/src/main/java/com/dg/core/controller/OrganizationController.java
@@ -88,6 +88,11 @@
    public ResultData deleteConfigById(@RequestParam(value = "Id",required = false)  String Id)
    {
        Assert.notNull(Id, "Id 不能为空");
        OrganizationChartEntity entity=iOrganizationChartService.selectConfigById(Id);
        if(!StringUtils.isEmpty(entity.getParentId()))
        {
            return ResultData.error("该机构下存在其他部门!请先删除子部门");
        }
        return toAjax(iOrganizationChartService.deleteConfigById(Id));
    }
@@ -151,7 +156,6 @@
        return getDataTable(ids);
    }
    //递归取id
    private List<OrganizationChartEntity> disposestreetId(List<OrganizationChartEntity> lists)
    {
@@ -170,8 +174,5 @@
        }
        return ids;
    }
}