Pu Zhibing
2025-06-05 065c2d959a8e686ab03fee0454fbffa68a4d1411
ruoyi-modules/ruoyi-system/src/main/resources/mapping/system/WarnMapper.xml
@@ -142,7 +142,7 @@
         count(1) as total
         from t_warn a
         left join t_car b on (a.car_id = b.id)
         where a.car_id is not null and a.treatment_state = '已处理' group by b.operate_type
         where a.car_id is not null and a.treatment_state = '已处理完毕' group by b.operate_type
      ) as bb on (ct.name = bb.operate_type)
      left join (
         select
@@ -150,7 +150,7 @@
         count(1) as total
         from t_warn a
         left join t_car b on (a.car_id = b.id)
         where a.car_id is not null and a.treatment_state = '处理中' group by b.operate_type
         where a.car_id is not null and a.treatment_state != '已处理完毕' group by b.operate_type
      ) as cc on (ct.name = cc.operate_type)
   </select>
</mapper>