Bläddra i källkod

设备列表添加code与transport

lipenghui 1 månad sedan
förälder
incheckning
c788196887

+ 3 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/yanfan/device/vo/YfIotDeviceRespVO.java

@@ -143,4 +143,7 @@ public class YfIotDeviceRespVO {
     private List<IotYfSipRelationDO> sipRelationList;
 
     private Integer deviceType;
+
+    private String protocolCode;
+    private String transport;
 }

+ 3 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/resources/mapper/static/yanfan/YfIotDeviceMapper.xml

@@ -149,6 +149,9 @@
         p.protocol_code,p.transport,p.guid
         from rq_yf_iot_device d
         left join rq_iot_product p on p.product_id=d.product_id
+        <where>
+            <if test="productId != null ">and d.product_id = #{productId}</if>
+        </where>
         order by d.create_time desc
     </select>