| | |
| | | select |
| | | id as id, |
| | | (1) as type, |
| | | ('专车订单') as `name`, |
| | | if(#{language} = 1, '打车', if(#{language} = 2 , 'Ride', 'Course')) as `name`, |
| | | DATE_FORMAT(travelTime, '%Y-%m-%d %H:%i:%s') as time, |
| | | startAddress as startAddress, |
| | | 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} |
| | |
| | | select |
| | | id as id, |
| | | (1) as type, |
| | | ('专车订单') as `name`, |
| | | if(#{language} = 1, '打车', if(#{language} = 2 , 'Ride', 'Course')) as `name`, |
| | | DATE_FORMAT(travelTime, '%Y-%m-%d %H:%i:%s') as time, |
| | | startAddress as startAddress, |
| | | 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} |
| | |
| | | select |
| | | id as id, |
| | | (1) as type, |
| | | ('专车订单') as `name`, |
| | | if(#{language} = 1, '打车', if(#{language} = 2 , 'Ride', 'Course')) as `name`, |
| | | DATE_FORMAT(travelTime, '%Y-%m-%d %H:%i:%s') as time, |
| | | startAddress as startAddress, |
| | | 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} |
| | |
| | | select |
| | | id as id, |
| | | (1) as type, |
| | | ('专车订单') as `name`, |
| | | if(#{language} = 1, '打车', if(#{language} = 2 , 'Ride', 'Course')) as `name`, |
| | | DATE_FORMAT(travelTime, '%Y-%m-%d %H:%i:%s') as time, |
| | | startAddress as startAddress, |
| | | endAddress as endAddress, |
| | |
| | | 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> |
| | | <if test="state == 2"> |
| | | and state = 7 |
| | | and (state in (7, 12) or driverPay = 1) |
| | | </if> |
| | | <if test="state == 3"> |
| | | and state = 10 |
| | |
| | | select |
| | | id as orderId, |
| | | state as orderState, |
| | | ('专车订单') as orderName, |
| | | DATE_FORMAT(travelTime, '%m月%d日 %H:%i') as travelTime, |
| | | if(#{language} = 1, '打车', if(#{language} = 2 , 'Ride', 'Course')) as orderName, |
| | | DATE_FORMAT(travelTime, '%m-%d %H:%i') as travelTime, |
| | | startAddress as startAddress, |
| | | endAddress as endAddress, |
| | | startLon as startLon, |
| | |
| | | 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.userId as userId, |
| | | a.driverId as driverId, |
| | | a.state as orderState, |
| | | DATE_FORMAT(a.travelTime, '%m月%d日 %H:%i') as travelTime_, |
| | | DATE_FORMAT(a.travelTime, '%m-%d %H:%i') as travelTime_, |
| | | DATE_FORMAT(a.travelTime, '%Y-%m-%d %H:%i:%s') as travelTime, |
| | | DATE_FORMAT(a.arriveTime, '%Y-%m-%d %H:%i:%s') as arriveTime, |
| | | a.startAddress as startAddress, |
| | |
| | | a.endLat as endLat, |
| | | a.orderMoney as orderMoney, |
| | | a.payManner as payManner, |
| | | 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.reason as cancelReason, |
| | | c.remark as cancelRemark, |
| | | c.money as cancelPayMoney, |
| | | if(c.userType = 1, '用户取消', '平台取消') as cancelUser, |
| | | 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) |