Commit 1aec4d7d authored by caotao's avatar caotao

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

parent 5a0aee0b
......@@ -350,15 +350,15 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
gfzTreeDto.setChildren(gfz);
List<TreeDto> treeDtos = Arrays.asList(fdzTreeDto, gfzTreeDto);
treeDto.setChildren(treeDtos);
// if(companyLevel.equals("station")){
// List<TreeDto> children = stationListByRegionCode.stream().filter(t->t.getCode().equals(sequenceNbr)).collect(Collectors.toList());
// if(stationBasic.getStationType().equals("FDZ")){
// treeDto = fdzTreeDto;
// }else {
// treeDto = gfzTreeDto;
// }
// treeDto.setChildren(children);
// }
if(companyLevel.equals("station")){
List<TreeDto> children = stationListByRegionCode.stream().filter(t->t.getCode().equals(sequenceNbr)).collect(Collectors.toList());
if(stationBasic.getStationType().equals("FDZ")){
treeDto = fdzTreeDto;
}else {
treeDto = gfzTreeDto;
}
treeDto.setChildren(children);
}
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