From c78f2157f8b4553ea60d14e8e866a882b15aa355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98ml=E2=80=99?= Date: Mon, 10 Oct 2022 18:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=82=E7=BA=A7=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organization/service/impl/OrgChartServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/engine/organization/service/impl/OrgChartServiceImpl.java b/src/com/engine/organization/service/impl/OrgChartServiceImpl.java index e02730eb..385f27a5 100644 --- a/src/com/engine/organization/service/impl/OrgChartServiceImpl.java +++ b/src/com/engine/organization/service/impl/OrgChartServiceImpl.java @@ -117,7 +117,7 @@ public class OrgChartServiceImpl extends Service implements OrgChartService { // 获取根节点 RecordSet rs = new RecordSet(); - rs.executeQuery("select id, fname, ftype, fparentid, fnumber from jcl_org_map " + whereSql + whereItemSql); + rs.executeQuery("select id, fname, ftype, fparentid, fnumber, fobjid from jcl_org_map " + whereSql + whereItemSql); List> list = new ArrayList<>(); String id = null; if (rs.next()) { @@ -127,13 +127,14 @@ public class OrgChartServiceImpl extends Service implements OrgChartService { item.put("fname", rs.getString("fname")); item.put("ftype", rs.getString("ftype")); item.put("fnumber", rs.getString("fnumber")); + item.put("fobjid",rs.getString("fobjid")); item.put("parentId", null); item.put("expand", "1"); item.put("hasChildren", hasChildren(rs.getString("id"), true)); list.add(item); } - int currentLevel = 1; + int currentLevel = 0; if (currentLevel + 1 <= Integer.parseInt(level)) { findCompanyItemByParantId(id, currentLevel + 1, level, rs, list, whereSql, true); } @@ -180,7 +181,6 @@ public class OrgChartServiceImpl extends Service implements OrgChartService { String fclass = (String) request2Map.get("fclass"); // 维度 - String fisvitual = (String) request2Map.get("fisvitual"); // 是否显示虚拟组织 if (StringUtils.isBlank(fisvitual)) { fisvitual = "0";