From 34d9307df9870510f9204659ddf9f5389012cd4d Mon Sep 17 00:00:00 2001
From: cjl <909710561@qq.com>
Date: Mon, 17 Jun 2024 15:57:37 +0800
Subject: [PATCH] fix:sql查询时间调整

---
 screen-api/src/main/java/com/moral/api/pojo/vo/monitorPoint/MonitorPointsVO.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/screen-api/src/main/java/com/moral/api/pojo/vo/monitorPoint/MonitorPointsVO.java b/screen-api/src/main/java/com/moral/api/pojo/vo/monitorPoint/MonitorPointsVO.java
index d54852a..90233f2 100644
--- a/screen-api/src/main/java/com/moral/api/pojo/vo/monitorPoint/MonitorPointsVO.java
+++ b/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());

--
Gitblit v1.8.0