Browse Source

在线离线 1:在线 2:离线

sunhh 1 year ago
parent
commit
565222af00

+ 1 - 1
business-service/src/main/resources/mapper/BaseCameraManagementMapper.xml

@@ -36,7 +36,7 @@
 
 
     <select id="getMessageStatisticsCamera" resultType="java.util.Map">
     <select id="getMessageStatisticsCamera" resultType="java.util.Map">
         select count(id) countAllCamera,
         select count(id) countAllCamera,
-            SUM(CASE online WHEN '0' THEN 1 ELSE 0 end) AS offlineCamera,
+            SUM(CASE online WHEN '2' THEN 1 ELSE 0 end) AS offlineCamera,
             SUM(CASE online WHEN '1' THEN 1 ELSE 0 end) AS onlineCamera
             SUM(CASE online WHEN '1' THEN 1 ELSE 0 end) AS onlineCamera
         from base_camera_management
         from base_camera_management
     </select>
     </select>

+ 1 - 1
business-service/src/main/resources/mapper/MonitorSystemMapper.xml

@@ -68,7 +68,7 @@
 
 
     <select id="monitorSystemCount"  resultType="java.util.Map">
     <select id="monitorSystemCount"  resultType="java.util.Map">
         select count(id) AS countAllMonitor,
         select count(id) AS countAllMonitor,
-               SUM(CASE status WHEN '0' THEN 1 ELSE 0 end) AS offlineMonitor,
+               SUM(CASE status WHEN '2' THEN 1 ELSE 0 end) AS offlineMonitor,
                SUM(CASE status WHEN '1' THEN 1 ELSE 0 end) AS onlineMonitor
                SUM(CASE status WHEN '1' THEN 1 ELSE 0 end) AS onlineMonitor
         from monitor_system
         from monitor_system
     </select>
     </select>