From 3ac9f76c7f70949720cdeeb131e04881d379bfac Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 10 Jan 2023 11:47:13 +0800 Subject: [PATCH] ... --- .../io/renren/modules/sys/controller/SysDeptController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());