组织架构图查询条件

pull/187/MERGE^2
Chengliang 3 years ago
parent 80628881cb
commit fef2717962

@ -38,11 +38,9 @@ public class OrgChartServiceImpl extends Service implements OrgChartService {
fclasslist.add(item);
}
rs.executeQuery("select id, fnumber, fname from jcl_org_map " +("company".equals(type) ? "where ftype in (0, 1, 2)" : "") +" order by ftype , id ");
rs.executeQuery("select id, fnumber, fname from jcl_org_map where ftype in (0, 1) order by ftype , id ");
List<Map<String, Object>> companylist = new ArrayList<>();
Map<String, Object> defaultCompanyItem = new HashMap<>();
defaultCompanyItem.put("id", "0");
defaultCompanyItem.put("fname", "集团");
companylist.add(defaultCompanyItem);
while(rs.next()) {
Map<String, Object> item = new HashMap<>();

Loading…
Cancel
Save