Commit 1aec4d7d authored by caotao's avatar caotao

如果当前用户为未配置权限则默认展示全部数据

parent 5a0aee0b
...@@ -350,15 +350,15 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -350,15 +350,15 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
gfzTreeDto.setChildren(gfz); gfzTreeDto.setChildren(gfz);
List<TreeDto> treeDtos = Arrays.asList(fdzTreeDto, gfzTreeDto); List<TreeDto> treeDtos = Arrays.asList(fdzTreeDto, gfzTreeDto);
treeDto.setChildren(treeDtos); treeDto.setChildren(treeDtos);
// if(companyLevel.equals("station")){ if(companyLevel.equals("station")){
// List<TreeDto> children = stationListByRegionCode.stream().filter(t->t.getCode().equals(sequenceNbr)).collect(Collectors.toList()); List<TreeDto> children = stationListByRegionCode.stream().filter(t->t.getCode().equals(sequenceNbr)).collect(Collectors.toList());
// if(stationBasic.getStationType().equals("FDZ")){ if(stationBasic.getStationType().equals("FDZ")){
// treeDto = fdzTreeDto; treeDto = fdzTreeDto;
// }else { }else {
// treeDto = gfzTreeDto; treeDto = gfzTreeDto;
// } }
// treeDto.setChildren(children); treeDto.setChildren(children);
// } }
return treeDto; return treeDto;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment