From b8f1ebcfe5f29e2636a4aae690b8be9a081be9d0 Mon Sep 17 00:00:00 2001
From: chuguofei <1633295391@qq.com>
Date: Thu, 15 Jun 2023 11:38:44 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E5=A4=87=E7=9B=91=E6=8E=A7?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E3=80=90=E8=AE=BE=E5=A4=87=E5=90=8D=E7=A7=B0?=
=?UTF-8?q?=E3=80=91=E6=A3=80=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/lp/mapper/iot_node_info_mapper.xml | 17 +++---
src/main/webapp/WEB-INF/oss/iot/monitor.jsp | 53 ++++++++++++-------
2 files changed, 45 insertions(+), 25 deletions(-)
diff --git a/src/main/java/com/lp/mapper/iot_node_info_mapper.xml b/src/main/java/com/lp/mapper/iot_node_info_mapper.xml
index 6979110..fb40964 100644
--- a/src/main/java/com/lp/mapper/iot_node_info_mapper.xml
+++ b/src/main/java/com/lp/mapper/iot_node_info_mapper.xml
@@ -283,10 +283,10 @@
t.iot_node_status,t.atime node_atime ,t.infos AS deviceinfos ,
t.iot_protocal_category ,
t.frequency , t.device_code ,t.template_id , o.*
- FROM
+ FROM
(
- SELECT * FROM iot_node_info
+ SELECT * FROM iot_node_info
WHERE 1=1
AND scene_id =#{scene_id}
@@ -295,15 +295,15 @@
AND delete_flag=#{delete_flag}
- AND device_code LIKE CONCAT("%", #{device_code},"%")
+ AND device_code LIKE CONCAT("%", #{device_code},"%")
- AND scene_id IN ( SELECT scene_id FROM iot_scene_user_relation WHERE user_id = #{user_id} )
+ AND scene_id IN ( SELECT scene_id FROM iot_scene_user_relation WHERE user_id = #{user_id} )
AND id=#{id}
- ORDER BY seq ASC
+ ORDER BY seq ASC
)
@@ -323,13 +323,16 @@
AND t.delete_flag=#{delete_flag}
- AND device_code LIKE CONCAT("%", #{device_code},"%")
+ AND device_code LIKE CONCAT("%", #{device_code},"%")
AND t.id=#{id}
- ORDER BY
+
+ AND o.name LIKE CONCAT("%", #{scene_name},"%")
+
+ ORDER BY
t.seq ASC , t.id ASC ,
diff --git a/src/main/webapp/WEB-INF/oss/iot/monitor.jsp b/src/main/webapp/WEB-INF/oss/iot/monitor.jsp
index 32e22f3..c25133d 100644
--- a/src/main/webapp/WEB-INF/oss/iot/monitor.jsp
+++ b/src/main/webapp/WEB-INF/oss/iot/monitor.jsp
@@ -125,9 +125,10 @@
-
+
@@ -140,12 +141,27 @@
-
-
{0} {1}
-
设置参数
-
设备号:{2}
+
+
+
+
+
+
+ 设备号:{2}
+ 设置参数
+
+
+
+
+
{3}
@@ -164,7 +180,7 @@
{3}
- 下发
+ 下发
![]()
-
下发
+
下发
{3}
- 下发
+ 下发