Commit c47d43d2 authored by xixinzhao's avatar xixinzhao

修改bug

parent 9cd7e2d6
...@@ -5971,8 +5971,8 @@ ...@@ -5971,8 +5971,8 @@
<select id="selectCarStats" resultType="java.util.Map"> <select id="selectCarStats" resultType="java.util.Map">
SELECT SELECT
COUNT(*) AS totalCount, COUNT(*) AS totalCount,
SUM(CASE WHEN wc.equip_status = 1 then 1 else 0 end ) AS yellowCodeCount, IFNULL(SUM(CASE WHEN wc.equip_status = 1 then 1 else 0 end ), 0) AS yellowCodeCount,
SUM(CASE WHEN wc.equip_status = 2 then 1 else 0 end ) AS redCodeCount IFNULL(SUM(CASE WHEN wc.equip_status = 2 then 1 else 0 end ), 0) AS redCodeCount
FROM FROM
wl_car wc wl_car wc
LEFT JOIN wl_equipment wle ON wle.id = wc.equipment_id LEFT JOIN wl_equipment wle ON wle.id = wc.equipment_id
......
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