| | |
| | | |
| | | private List<MonitorPointVO> monitorPoints; |
| | | |
| | | public static MonitorPointsVO convert(List<MonitorPoint> monitorPoints,boolean type){ |
| | | public static MonitorPointsVO convert(List<MonitorPoint> monitorPoints,boolean type, boolean code){ |
| | | MonitorPointsVO monitorPointsVO = new MonitorPointsVO(); |
| | | List<MonitorPointVO> monitorPointVOS = new ArrayList<>(); |
| | | for (MonitorPoint monitorPoint : monitorPoints) { |
| | |
| | | DeviceVO deviceVO = deviceConvert(device); |
| | | deviceVOS.add(deviceVO); |
| | | } |
| | | if(code){ |
| | | DeviceVO vo = new DeviceVO(); |
| | | vo.setName(monitorPoint.getName()+"均值"); |
| | | vo.setMac(monitorPoint.getId()+",avg"); |
| | | deviceVOS.add(vo); |
| | | } |
| | | List<Device> resultState = devices.stream().filter(it->!it.getState().equals("0")).collect(Collectors.toList()); |
| | | monitorPointVO.setId(monitorPoint.getId()); |
| | | StringBuffer stringBuffer = new StringBuffer(monitorPoint.getName()); |