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