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} +
+ +
+
+
+   + {0} +
+ {1} +
+ +
+ 设备号:{2} + 设置参数 +
+
+
+ +
{3}
@@ -164,7 +180,7 @@
{3} - 下发 + 下发
- 下发 + 下发
{3} - 下发 + 下发