| | |
| | | select |
| | | id as orderId, |
| | | DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as orderTime, |
| | | DATE_FORMAT(travelTime, '%m月%d日 %H:%i') as time, |
| | | DATE_FORMAT(travelTime, '%m-%d %H:%i') as time, |
| | | startAddress as startAddress, |
| | | endAddress as endAddress, |
| | | driverId as driverId, |
| | | (1) as orderType, |
| | | state as state, |
| | | oldState as oldState |
| | | from t_order_private_car where userId = #{uid} order by insertTime desc limit #{pageNum}, #{size} |
| | | from t_order_private_car where userId = #{uid} and isDelete = 1 order by insertTime desc limit #{pageNum}, #{size} |
| | | </select> |
| | | |
| | | |
| | |
| | | startAddress as startAddress, |
| | | endAddress as endAddress, |
| | | payMoney as payMoney, |
| | | ('专车订单') as orderName, |
| | | ('打车订单') as orderName, |
| | | if(invoiceId is null, 1, 2) as invoice, |
| | | unix_timestamp(insertTime) as insertTime, |
| | | (1) as orderType |
| | |
| | | CONCAT(b.firstName, " ", b.lastName) as driverName, |
| | | c.carLicensePlate as licensePlate, |
| | | c.carColor as carColor, |
| | | CONCAT(f.`name`, d.`name`) as brand, |
| | | CONCAT(f.`name`, " ", d.`name`) as brand, |
| | | ((select sum(fraction) from t_order_evaluate where driverId = a.driverId) / (select count(id) from t_order_evaluate where driverId = a.driverId)) as score, |
| | | ( |
| | | (select count(id) from t_order_private_car where driverId = a.driverId and state in (7, 8, 9)) + |
| | |
| | | select |
| | | (payMoney * -1) as money, |
| | | DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time, |
| | | ('专车订单') as name, |
| | | ('打车订单') as name, |
| | | UNIX_TIMESTAMP(insertTime) as insertTime |
| | | from t_order_private_car where payMoney != 0 and userId = #{uid} and state in (8, 9, 10, 11, 12) |
| | | from t_order_private_car where payMoney != 0 and userId = #{uid} and state in (8, 9, 10, 11, 12) and payType = 3 |
| | | </select> |
| | | |
| | | |
| | |
| | | select |
| | | redPacketMoney as money, |
| | | DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time, |
| | | ('专车订单') as name, |
| | | ('打车订单') as name, |
| | | UNIX_TIMESTAMP(insertTime) as insertTime |
| | | from t_order_private_car where userId = #{uid} and state in (8, 9) and redPacketId is not null |
| | | </select> |