| | |
| | | CONCAT(F.`name`, d.`name`, '.', c.carColor) as carName, |
| | | (select sum(fraction) / count(id) from t_order_evaluate where driverId = a.id) as score, |
| | | ( |
| | | (select count(id) from t_order_private_car where state in (7, 8, 9) and driverId = a.id) + |
| | | (select count(id) from t_order_taxi where state in (7, 8, 9) and driverId = a.id) + |
| | | (select count(id) from t_order_cross_city where state in (6, 8, 9) and driverId = a.id) |
| | | (select count(id) from t_order_private_car where driverId = a.id and state in (6, 7, 8, 9)) + |
| | | (select count(id) from t_order_logistics where driverId = a.id and state in (6, 7, 8, 9)) |
| | | ) as num, |
| | | DATE_FORMAT(b.startServiceTime, '%m月%d日 %H:%i') as `time`, |
| | | b.startAddress as `start`, |
| | |
| | | (select count(id) from t_order_cross_city where state not in (6, 7, 8, 9, 10, 12) and driverId = a.id) |
| | | ) = 0, 2, 3)) as state, |
| | | ( |
| | | (select count(id) from t_order_private_car where state in (7, 8, 9) and driverId = a.id) + |
| | | (select count(id) from t_order_taxi where state in (7, 8, 9) and driverId = a.id) + |
| | | (select count(id) from t_order_cross_city where state in (6, 8, 9) and driverId = a.id) |
| | | (select count(id) from t_order_private_car where driverId = a.id and state in (6, 7, 8, 9)) + |
| | | (select count(id) from t_order_logistics where driverId = a.id and state in (6, 7, 8, 9)) |
| | | ) as orderNum, |
| | | ((select sum(fraction) from t_order_evaluate where driverId = a.id) / (select count(id) from t_order_evaluate where driverId = a.id)) as fraction |
| | | from t_driver a |