| | |
| | | ( |
| | | (select count(id) from t_order_private_car where driverId = a.id and state !=10 and to_days(insertTime) = to_days(now())) + |
| | | (select count(id) from t_order_taxi where driverId = a.id and state !=10 and to_days(insertTime) = to_days(now())) + |
| | | (select count(id) from t_order_cross_city where driverId = a.id state !=10 and to_days(insertTime) = to_days(now())) + |
| | | (select count(id) from t_order_cross_city where driverId = a.id and state !=10 and to_days(insertTime) = to_days(now())) + |
| | | (select count(id) from t_order_logistics where driverId = a.id and state in (6, 9) and to_days(insertTime) = to_days(now())) |
| | | ) as dayNum, |
| | | ( |
| | | (select count(id) from t_order_private_car where driverId = a.id and state !=10 and DATE_FORMAT(insertTime, '%Y%m') = DATE_FORMAT(now(), '%Y%m')) + |
| | | (select count(id) from t_order_taxi where driverId = a.id and state state !=10 and DATE_FORMAT(insertTime, '%Y%m') = DATE_FORMAT(now(), '%Y%m')) + |
| | | (select count(id) from t_order_taxi where driverId = a.id and state !=10 and DATE_FORMAT(insertTime, '%Y%m') = DATE_FORMAT(now(), '%Y%m')) + |
| | | (select count(id) from t_order_cross_city where driverId = a.id and state !=10 and DATE_FORMAT(insertTime, '%Y%m') = DATE_FORMAT(now(), '%Y%m')) + |
| | | (select count(id) from t_order_logistics where driverId = a.id and state in (6, 9) and DATE_FORMAT(insertTime, '%Y%m') = DATE_FORMAT(now(), '%Y%m')) |
| | | ) as mouthNum, |