中扬CRM客户关系管理系统
#
luxiaotao1123
2022-09-14 3789a81eb0f5923a223cf41c46835e1b9031f61d
src/main/java/com/zy/crm/system/controller/DeptController.java
@@ -139,7 +139,7 @@
    @PostMapping(value = "/dept/tree/auth")
    @ManagerAuth
    public R tree(@RequestParam(required = false, defaultValue = "") String condition) throws IOException, ClassNotFoundException {
        ArrayList<Map> tree = treeUtils.getDeptTree(String.valueOf(getOriginDept().getId()), getHostId());
        ArrayList<Map> tree = treeUtils.getDeptTree(String.valueOf(getDeptId()), getHostId());
        // 深拷贝
        List<Map> result = ListUtils.deepCopy(tree);
        if (!Cools.isEmpty(condition)) {