From c696835a339d7e67cc8b7c9c01f2555747da7bef Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Tue, 27 Jun 2023 10:09:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organization/service/impl/OrgChartServiceImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/engine/organization/service/impl/OrgChartServiceImpl.java b/src/com/engine/organization/service/impl/OrgChartServiceImpl.java index 51dc36b7..3963ee48 100644 --- a/src/com/engine/organization/service/impl/OrgChartServiceImpl.java +++ b/src/com/engine/organization/service/impl/OrgChartServiceImpl.java @@ -43,13 +43,15 @@ public class OrgChartServiceImpl extends Service implements OrgChartService { public Map getOptionCondition(Map request2Map, User user) { Map result = new HashMap<>(); RecordSet rs = new RecordSet(); - rs.executeQuery("select id, companyname from HrmCompanyVirtual order by id"); - List> fclasslist = new ArrayList<>(); Map defaultItem = new HashMap<>(); + rs.executeQuery("select companyname from hrmcompany"); + rs.next(); int fkey = 0; defaultItem.put("key", fkey++); defaultItem.put("id", "0"); - defaultItem.put("companyname", "行政维度"); + defaultItem.put("companyname", Util.null2String(rs.getString("companyname"))); + rs.executeQuery("select id, companyname from HrmCompanyVirtual order by id"); + List> fclasslist = new ArrayList<>(); fclasslist.add(defaultItem); while (rs.next()) { Map item = new HashMap<>();