Browse Source

风场查询过滤

chenhongyan1989 1 year ago
parent
commit
552f2afe5d

+ 1 - 1
energy-manage-service/src/main/java/com/energy/manage/service/service/system/impl/SysOrganizationAuthServiceImpl.java

@@ -52,7 +52,7 @@ public class SysOrganizationAuthServiceImpl implements SysOrganizationAuthServic
     public Map<String, List<SysOrganizationAuthVo>> queryCodeNunByRoleId(Integer roleId) {
         Map<String, List<SysOrganizationAuthVo>> returnMap = new HashMap<>();
         List<SysOrganizationAuthVo> authPoList = sysOrganizationAuthMapper.selectByRoleId(roleId);
-        authPoList.parallelStream().filter(po -> po.getCodeType().equals(TypeRelationEnum.WIND_FIELD_NUMBER.getCode()))
+        authPoList = authPoList.parallelStream().filter(po -> po.getCodeType().equals(TypeRelationEnum.WIND_FIELD_NUMBER.getCode()))
                 .collect(Collectors.toList());
         returnMap.put(FILE_CODE_LIST_KEY, authPoList);
         return returnMap;