| | |
| | | <select id="queryHomeData" resultType="map"> |
| | | select |
| | | b.carLicensePlate as licensePlate, |
| | | CONCAT(d.`name`, c.`name`, ' . ', b.carColor) as brand, |
| | | CONCAT(d.`name`, ' ', c.`name`, ' . ', b.carColor) as brand, |
| | | ( |
| | | (select count(id) from t_order_private_car where driverId = a.id and state in (7, 8, 9) and to_days(insertTime) = to_days(now())) + |
| | | (select count(id) from t_order_taxi where driverId = a.id and state in (7, 8, 9) and to_days(insertTime) = to_days(now())) + |
| | |
| | | b.vehicleId, |
| | | CONCAT(d.`name`, ' ', c.`name`) as brand, |
| | | ( |
| | | (select count(id) from t_order_private_car where driverId = a.id and state in (7, 8, 9)) + |
| | | (select count(id) from t_order_taxi where driverId = a.id and state in (7, 8, 9)) + |
| | | (select count(id) from t_order_cross_city where driverId = a.id and state in (6, 8, 9)) + |
| | | (select count(id) from t_order_logistics where driverId = a.id and state in (6, 9)) |
| | | (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(fraction) from t_order_evaluate where driverId = a.id)) as score |
| | | from t_driver a |