浏览代码

BUG修复

wangliang 3 年之前
父节点
当前提交
641d0667ec
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      distributed-print/src/main/java/com/qmth/distributed/print/api/SysController.java

+ 2 - 2
distributed-print/src/main/java/com/qmth/distributed/print/api/SysController.java

@@ -603,8 +603,8 @@ public class SysController {
                                     newSysOrgList.addAll(sysOrgService.findByConnectByParentId(s.getId(), true, false));
                                 }
                             }
-                            newSysOrgList = newSysOrgList.stream().filter(s -> s.getType() == OrgTypeEnum.COLLEGE).collect(Collectors.toList());
-                            dictionaryResultList = newSysOrgList.stream().map(e -> {
+                            Set<SysOrg> newSysOrgSet = newSysOrgList.stream().filter(s -> s.getType() == OrgTypeEnum.COLLEGE).collect(Collectors.toSet());
+                            dictionaryResultList = newSysOrgSet.stream().map(e -> {
                                 DictionaryResult dictionaryResult = new DictionaryResult();
                                 dictionaryResult.setId(e.getId());
                                 dictionaryResult.setCode(e.getCode());