tplinkapi接口增加变焦
This commit is contained in:
parent
77af84d48b
commit
5767e8ade1
|
@ -28,7 +28,7 @@
|
||||||
a.nu_id as nuId,
|
a.nu_id as nuId,
|
||||||
b.nu_name as nuName,
|
b.nu_name as nuName,
|
||||||
ifnull(c.multitrans,0) as multitrans
|
ifnull(c.multitrans,0) as multitrans
|
||||||
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.id
|
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.nu_id
|
||||||
left join nu_iot_tplink_camera_capability c on a.device_index = c.device_index
|
left join nu_iot_tplink_camera_capability c on a.device_index = c.device_index
|
||||||
<where>
|
<where>
|
||||||
<if test="params.deviceIndex != null and params.deviceIndex != ''">
|
<if test="params.deviceIndex != null and params.deviceIndex != ''">
|
||||||
|
@ -46,6 +46,9 @@
|
||||||
<if test="params.regionName != null and params.regionName != ''">
|
<if test="params.regionName != null and params.regionName != ''">
|
||||||
AND a.region_name LIKE concat('%',#{params.regionName},'%')
|
AND a.region_name LIKE concat('%',#{params.regionName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.nuId != null and params.nuId != ''">
|
||||||
|
AND a.nu_id = #{params.nuId}
|
||||||
|
</if>
|
||||||
<if test="params.nuName != null and params.nuName != ''">
|
<if test="params.nuName != null and params.nuName != ''">
|
||||||
AND b.nu_name LIKE concat('%',#{params.nuName},'%')
|
AND b.nu_name LIKE concat('%',#{params.nuName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
@ -87,12 +90,12 @@
|
||||||
|
|
||||||
<select id="findNuPage" parameterType="com.nu.modules.iot.tplink.entity.AppCameraInfo" resultType="com.nu.modules.iot.tplink.entity.AppCameraInfo">
|
<select id="findNuPage" parameterType="com.nu.modules.iot.tplink.entity.AppCameraInfo" resultType="com.nu.modules.iot.tplink.entity.AppCameraInfo">
|
||||||
select
|
select
|
||||||
id as nuId,
|
nu_id as nuId,
|
||||||
nu_name as nuName
|
nu_name as nuName
|
||||||
from nu_base_info b
|
from nu_base_info b
|
||||||
<where>
|
<where>
|
||||||
<if test="params.nuId != null and params.nuId != ''">
|
<if test="params.nuId != null and params.nuId != ''">
|
||||||
AND b.id = #{params.nuId}
|
AND b.nu_id = #{params.nuId}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.nuName != null and params.nuName != ''">
|
<if test="params.nuName != null and params.nuName != ''">
|
||||||
AND b.nu_name LIKE concat('%',#{params.nuName},'%')
|
AND b.nu_name LIKE concat('%',#{params.nuName},'%')
|
||||||
|
@ -125,7 +128,7 @@
|
||||||
protocol as protocol,
|
protocol as protocol,
|
||||||
a.nu_id as nuId,
|
a.nu_id as nuId,
|
||||||
b.nu_name as nuName
|
b.nu_name as nuName
|
||||||
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.id
|
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.nu_id
|
||||||
where device_index = #{deviceIndex}
|
where device_index = #{deviceIndex}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -154,7 +157,7 @@
|
||||||
protocol as protocol,
|
protocol as protocol,
|
||||||
a.nu_id as nuId,
|
a.nu_id as nuId,
|
||||||
b.nu_name as nuName
|
b.nu_name as nuName
|
||||||
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.id
|
from nu_iot_tplink_camera a left join nu_base_info b on a.nu_id = b.nu_id
|
||||||
where a.nu_id = #{nuId}
|
where a.nu_id = #{nuId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,9 @@
|
||||||
<if test="params.regionName != null and params.regionName != ''">
|
<if test="params.regionName != null and params.regionName != ''">
|
||||||
AND a.region_name LIKE concat('%',#{params.regionName},'%')
|
AND a.region_name LIKE concat('%',#{params.regionName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.nuId != null and params.nuId != ''">
|
||||||
|
AND a.nu_id = #{params.nuId}
|
||||||
|
</if>
|
||||||
<if test="params.nuName != null and params.nuName != ''">
|
<if test="params.nuName != null and params.nuName != ''">
|
||||||
AND b.nu_name LIKE concat('%',#{params.nuName},'%')
|
AND b.nu_name LIKE concat('%',#{params.nuName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
|
Loading…
Reference in New Issue