cjl
2024-04-23 ee8bb47024e9ef5a585a5f4d61d1ab236c9d4341
screen-api/src/main/java/com/moral/api/pojo/vo/monitorPoint/MonitorPointsVO.java
@@ -21,7 +21,7 @@
    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) {
@@ -32,6 +32,12 @@
                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());