From ffe09c893305253688e1373af3f810d5d662e6f3 Mon Sep 17 00:00:00 2001 From: dxfeng Date: Thu, 3 Nov 2022 14:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84=E5=9B=BE?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=B1=95=E7=A4=BA=E6=89=8B=E6=9C=BA=E3=80=81?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E3=80=81=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/OrgChartServiceImpl.java | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/src/com/engine/organization/service/impl/OrgChartServiceImpl.java b/src/com/engine/organization/service/impl/OrgChartServiceImpl.java index b38758d8..22c644f1 100644 --- a/src/com/engine/organization/service/impl/OrgChartServiceImpl.java +++ b/src/com/engine/organization/service/impl/OrgChartServiceImpl.java @@ -322,23 +322,20 @@ public class OrgChartServiceImpl extends Service implements OrgChartService { currentList.add(item); } - for (Map stringObjectMap : currentList) { - if ("4".equals(stringObjectMap.get("ftype"))) { // 员工信息 - rs.executeQuery("select id, mobile, homeaddress from hrmresource where id = ? ", stringObjectMap.get("fnumber")); - if (rs.next()) { - stringObjectMap.put("mobile", rs.getString("mobile")); - stringObjectMap.put("address", rs.getString("homeaddress")); - } - rs.executeQuery("select departmentname from hrmresource hrm \n" + - "left join hrmdepartment d\n" + - "on hrm.departmentid = d.id\n" + - "where hrm.id = ? ", stringObjectMap.get("fnumber")); - if (rs.next()) { - stringObjectMap.put("department", rs.getString("departmentname")); - } - - } - } + //for (Map stringObjectMap : currentList) { + // if ("4".equals(stringObjectMap.get("ftype"))) { // 员工信息 + // rs.executeQuery("select id, mobile, home_address from jcl_org_hrmresource where id = ? ", stringObjectMap.get("fobjid")); + // if (rs.next()) { + // stringObjectMap.put("mobile", rs.getString("mobile")); + // stringObjectMap.put("address", rs.getString("home_address")); + // } + // rs.executeQuery("select dept_name from jcl_org_hrmresource hrm left join jcl_org_dept d on hrm.department_id = d.id where hrm.id =? ", stringObjectMap.get("fobjid")); + // if (rs.next()) { + // stringObjectMap.put("department", rs.getString("dept_name")); + // } + // + // } + //} Map result = new HashMap<>(); result.put("api_status", true);