diff --git a/renren-admin/src/main/java/io/renren/modules/sys/controller/SysDeptController.java b/renren-admin/src/main/java/io/renren/modules/sys/controller/SysDeptController.java index 9ed66f01..b8d4d34e 100644 --- a/renren-admin/src/main/java/io/renren/modules/sys/controller/SysDeptController.java +++ b/renren-admin/src/main/java/io/renren/modules/sys/controller/SysDeptController.java @@ -112,7 +112,7 @@ public class SysDeptController { List> list_metting = jdbcTemplate.queryForList("SELECT DISTINCT dept from t_meetingroom_book WHERE dept IS NOT NULL;"); List temp = list.stream().map(index -> index.get("name")).filter(index -> index != null).map(index -> index.toString()).collect(Collectors.toList()); List> list_ = list_metting.stream().map(index -> index.get("dept")).filter(index -> index != null).collect(Collectors.toList()) - .stream().filter(index -> !temp.contains(index.toString())).map(index -> new LinkedHashMap() {{ + .stream().filter(index -> !temp.contains(index.toString())).map(index -> new HashMap() {{ put("id", null); put("name", index.toString()); }}).collect(Collectors.toList());