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