| | |
| | | b.avatar, |
| | | a.userName, |
| | | a.userPhone, |
| | | (select count(1) from t_order where userPhone = a.userPhone and state in (107, 108)) as orderTimes, |
| | | (select count(1) from t_order where userPhone = a.userPhone and state in (301)) as cancelTimes, |
| | | (select count(1) from t_order where userId = a.userId and state in (107, 108, 109)) as orderTimes, |
| | | (select count(1) from t_order where userId = a.userId and state in (301)) as cancelTimes, |
| | | a.source, |
| | | UNIX_TIMESTAMP(a.createTime) * 1000 as createTime, |
| | | a.startAddress, |
| | |
| | | b.avatar, |
| | | a.userName, |
| | | a.userPhone, |
| | | (select count(1) from t_order where userPhone = a.userPhone and state in (107, 108)) as orderTimes, |
| | | (select count(1) from t_order where userPhone = a.userPhone and state in (301)) as cancelTimes, |
| | | (select count(1) from t_order where userId = a.userId and state in (107, 108, 109)) as orderTimes, |
| | | (select count(1) from t_order where userId = a.userId and state in (301)) as cancelTimes, |
| | | a.source, |
| | | UNIX_TIMESTAMP(a.createTime) * 1000 as createTime, |
| | | a.startAddress, |
| | |
| | | a.endLng, |
| | | a.estimatedPrice, |
| | | a.estimatedMileage, |
| | | a.estimatedTime, |
| | | a.startPrice, |
| | | a.waitTime, |
| | | a.actualMileage, |
| | |
| | | count(1) as number |
| | | from t_order a |
| | | left join t_driver b on (a.driverId = b.id) |
| | | where a.state in (107, 108, 108) and a.`status` = 1 |
| | | where a.state in (107, 108, 109) and a.`status` = 1 |
| | | <if test="null != dayType and 1 == dayType"><!--天--> |
| | | <if test="null != time and '' != time"> |
| | | and DATE_FORMAT(a.createTime, '%Y年%m月%d日') = #{time} |