Browse Source

控制中心增加设备型号展示by pengdi @2020/11/23

pengdi@zoniot.com 4 years ago
parent
commit
6bc92c0e47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      smart-city-platform/src/main/resources/mapper/AlarmStatMapper.xml

+ 1 - 1
smart-city-platform/src/main/resources/mapper/AlarmStatMapper.xml

@@ -390,7 +390,7 @@
 		SELECT
 			count(1) as total ,
 			t1.device_type as device_type_id,
-			dt.equipment_type as device_type_name,
+			CONCAT(dt.equipment_type,'[',dt.model,']') as device_type_name,
 			SUM(IF(t1.device_status = 1, 1, 0)) as normal_count,
 			SUM(IF(t1.device_status != 1, 1, 0)) as abnormal_count,
 			SUM(IF(t1.device_status = 2, 1, 0)) as fault_count,