|
|
@@ -129,7 +129,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectDeviceTypeCount" resultType="com.xunmei.iot.vo.alarmData.DeviceTypeCountVo">
|
|
|
- SELECT
|
|
|
+ SELECT a.id,
|
|
|
a.device_type as deviceType,
|
|
|
count(1) as deviceTypeCount,
|
|
|
t.alarmNums as deviceTypeAlarmCount
|
|
|
@@ -149,9 +149,9 @@
|
|
|
<if test=" query.checkSub != null and query.checkSub == false">
|
|
|
and a.org_id = #{query.orgId}
|
|
|
</if>
|
|
|
- GROUP BY a.device_type
|
|
|
+ GROUP BY a.id
|
|
|
union all
|
|
|
- SELECT
|
|
|
+ SELECT a.id,
|
|
|
a.sensor_type as deviceType,
|
|
|
count(1) as deviceTypeCount,
|
|
|
t.alarmNums as deviceTypeAlarmCount
|
|
|
@@ -166,7 +166,7 @@
|
|
|
<if test=" query.checkSub != null and query.checkSub == false">
|
|
|
and a.org_id = #{query.orgId}
|
|
|
</if>
|
|
|
- GROUP BY a.sensor_type;
|
|
|
+ GROUP BY a.id;
|
|
|
</select>
|
|
|
<select id="selectSensorAlarmPageList" resultType="com.xunmei.iot.vo.alarm.IotAlarmDataVo">
|
|
|
SELECT
|