修改sql语句
This commit is contained in:
parent
b6fdc7d5d4
commit
4e524a8128
|
|
@ -133,34 +133,15 @@
|
||||||
-- nu_id as nuId,
|
-- nu_id as nuId,
|
||||||
-- a.channel
|
-- a.channel
|
||||||
-- from nu_iot_tplink_camera a
|
-- from nu_iot_tplink_camera a
|
||||||
select a.id,
|
select a.*,
|
||||||
a.device_index as deviceIndex,
|
b.device_name as deviceName,
|
||||||
b.device_name as deviceName,
|
b.device_type as deviceType,
|
||||||
b.device_type as deviceType,
|
a.device_status as deviceStatus,
|
||||||
a.device_status as deviceStatus,
|
b.device_model as deviceModel,
|
||||||
b.device_model as deviceModel,
|
b.nu_id as nuId
|
||||||
a.ip as ip,
|
from nu_iot_tplink_camera a
|
||||||
a.mac as mac,
|
inner join nu_iot_device_preview b on a.mac = b.sn
|
||||||
a.region_id as regionId,
|
where b.device_status != '损坏'
|
||||||
a.region_name as regionName,
|
|
||||||
a.parent_id as parentId,
|
|
||||||
a.parent_device_name as parentDeviceName,
|
|
||||||
a.project_id as projectId,
|
|
||||||
a.project_name as projectName,
|
|
||||||
a.firmware_ver as firmwareVer,
|
|
||||||
a.hardware_ver as hardwareVer,
|
|
||||||
a.manager_auth_type as managerAuthType,
|
|
||||||
a.msg_auth_type as msgAuthType,
|
|
||||||
a.sip_code as sipCode,
|
|
||||||
a.location_name as locationName,
|
|
||||||
a.system_type as systemType,
|
|
||||||
a.protocol as protocol,
|
|
||||||
a.record_plan_id as recordPlanId,
|
|
||||||
b.nu_id as nuId,
|
|
||||||
a.channel
|
|
||||||
from nu_iot_tplink_camera a
|
|
||||||
inner join nu_iot_device_preview b on a.mac = b.sn
|
|
||||||
where b.device_status != '损坏'
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findNuPage" parameterType="com.nu.modules.tplink.camera.entity.CameraInfo" resultType="com.nu.modules.tplink.camera.entity.CameraInfo">
|
<select id="findNuPage" parameterType="com.nu.modules.tplink.camera.entity.CameraInfo" resultType="com.nu.modules.tplink.camera.entity.CameraInfo">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue