| | |
| | | endAddress as endAddress, |
| | | state as state, |
| | | orderType as reservation, |
| | | driverId as driverId |
| | | driverId as driverId, |
| | | isFrozen |
| | | from t_order_private_car where 1 = 1 |
| | | <if test="null != driverId"> |
| | | and driverId = #{driverId} |
| | |
| | | endAddress as endAddress, |
| | | state as state, |
| | | orderType as reservation, |
| | | driverId as driverId |
| | | driverId as driverId, |
| | | isFrozen |
| | | from t_order_private_car where 1 = 1 |
| | | <if test="null != driverId"> |
| | | and driverId = #{driverId} |
| | |
| | | endAddress as endAddress, |
| | | state as state, |
| | | orderType as reservation, |
| | | driverId as driverId |
| | | driverId as driverId, |
| | | isFrozen |
| | | from t_order_private_car where 1 = 1 |
| | | <if test="null != driverId"> |
| | | and driverId = #{driverId} |
| | |
| | | payManner as payManner, |
| | | UNIX_TIMESTAMP(travelTime) as travelTime, |
| | | remark as remark, |
| | | driverPay |
| | | from t_order_private_car where driverId = #{driverId} |
| | | driverPay, |
| | | cancelMidway, |
| | | as settleAccounts |
| | | from t_order_private_car |
| | | where driverId = #{driverId} |
| | | <if test="state == 1"> |
| | | and state != 1 |
| | | </if> |
| | |
| | | orderSource as orderSource, |
| | | orderType as orderType, |
| | | isReassign as isReassign, |
| | | companyId as companyId |
| | | companyId as companyId, |
| | | tripId |
| | | from t_order_private_car where id = #{orderId} |
| | | </select> |
| | | |
| | |
| | | a.payMoney as payMoney, |
| | | a.trackId as trackId, |
| | | b.nickName as nickName, |
| | | b.phone as userPhone, |
| | | a.passengersPhone as phone, |
| | | a.orderType as reservation, |
| | | a.telX as telX, |
| | |
| | | c.money as cancelPayMoney, |
| | | if(c.userType = 1, '用户', '平台') as cancelUser, |
| | | (select isSpecialCar from t_sys_reformist where companyId = a.companyId) as reassign, |
| | | a.driverPay |
| | | a.driverPay, |
| | | a.isFrozen, |
| | | a.tripId, |
| | | DATE_FORMAT(a.snatchOrderTime, '%Y-%m-%d %H:%i:%s') as snatchOrderTime |
| | | from t_order_private_car a |
| | | left join t_user b on (a.userId = b.id) |
| | | left join t_order_cancel c on (a.id = c.orderId and c.orderType = 1 and c.state = 2) |