Commit b4f436ef authored by 李秀明's avatar 李秀明

更新SQL

parent 809f33b9
......@@ -5939,10 +5939,8 @@
<select id="selectFireFightingSystemStats" resultType="java.util.Map">
SELECT
COUNT(*) AS totalCount,
-- COUNT(CASE WHEN ffs.equip_status = '1' THEN 1 END) AS yellowCodeCount,
-- COUNT(CASE WHEN ffs.equip_status = '2' THEN 1 END) AS redCodeCount,
0 AS yellowCodeCount,
0 AS redCodeCount
COUNT(CASE WHEN ffs.system_status = '1' THEN 1 END) AS yellowCodeCount,
COUNT(CASE WHEN ffs.system_status = '2' THEN 1 END) AS redCodeCount
FROM f_fire_fighting_system ffs
WHERE ffs.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%')
</select>
......
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