Merge pull request !187 from reset/feature/cl
This commit is contained in:
reset 2022-08-10 07:37:22 +00:00 committed by Gitee
commit ad5cfbb527
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 3 deletions

View File

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