Commit 98f6de60 authored by 王晓倩's avatar 王晓倩

大屏标点报警接口调整

parent 2c6df2c8
...@@ -65,11 +65,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -65,11 +65,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="getDeviceInfoAlarmList" resultType="Map"> <select id="getDeviceInfoAlarmList" resultType="Map">
select a2.device_id as deviceId, select a3.device_id as deviceId,
a2.device_type as deviceType a3.device_type as deviceType
from t_detector_info a1 from t_relation_device_detail_info a1
right join t_device_info a2 on a1.device_id = a2.device_id left join t_detector_info a2 on a1.iot_no = a2.detector_code
where a1.is_del = '0' and a2.is_del = '0' and a1.detector_status = '2' right join t_device_info a3 on a1.relation_device_id = a3.device_id
where a1.is_del = '0' and a2.is_del = '0' and a3.is_del = '0' and a2.detector_status = '2'
</select> </select>
<insert id="insertTDeviceInfo" parameterType="TDeviceInfo" useGeneratedKeys="true" keyProperty="deviceId"> <insert id="insertTDeviceInfo" parameterType="TDeviceInfo" useGeneratedKeys="true" keyProperty="deviceId">
......
...@@ -48,9 +48,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -48,9 +48,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getSiteStationAlarmList" resultType="Map"> <select id="getSiteStationAlarmList" resultType="Map">
select a2.site_station_id as siteStationId select a2.site_station_id as siteStationId
from t_detector_info a1 from t_relation_device_detail_info a1
right join t_site_station_info a2 on a1.site_station_id = a2.site_station_id left join t_detector_info a2 on a1.iot_no = a2.detector_code
where a1.is_del = '0' and a2.is_del = '0' and a1.detector_status = '2' right join t_site_station_info a3 on a1.relation_device_id = a3.site_station_id
where a1.is_del = '0' and a2.is_del = '0' and a3.is_del = '0' and a2.detector_status = '2'
</select> </select>
<insert id="insertTSiteStationInfo" parameterType="TSiteStationInfo" useGeneratedKeys="true" keyProperty="siteStationId"> <insert id="insertTSiteStationInfo" parameterType="TSiteStationInfo" useGeneratedKeys="true" keyProperty="siteStationId">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment