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);