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