|
@@ -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>
|