| | |
| | | <if test="state == 1"> |
| | | select |
| | | id as id, |
| | | (7) as type, |
| | | (1) as type, |
| | | ('接送机订单') as `name`, |
| | | DATE_FORMAT(travelTime, '%Y-%m-%d %H:%i:%s') as time, |
| | | startAddress as startAddress, |
| | |
| | | |
| | | select |
| | | id as id, |
| | | (7) as type, |
| | | (1) as type, |
| | | ('接送机订单') as `name`, |
| | | DATE_FORMAT(travelTime, '%Y-%m-%d %H:%i:%s') as time, |
| | | startAddress as startAddress, |
| | |
| | | <if test="state == 2"> |
| | | select |
| | | id as id, |
| | | (7) as type, |
| | | (1) as type, |
| | | ('接送机订单') as `name`, |
| | | DATE_FORMAT(travelTime, '%Y-%m-%d %H:%i:%s') as time, |
| | | startAddress as startAddress, |
| | |
| | | companyId as companyId |
| | | from t_order_transfer where id = #{orderId} |
| | | </select> |
| | | |
| | | <select id="queryMyAllOrder" resultType="map"> |
| | | select |
| | | id as id, |
| | | (7) as type, |
| | | ('接送机订单') 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, |
| | | orderMoney as orderMoney, |
| | | payManner as payManner, |
| | | UNIX_TIMESTAMP(travelTime) as travelTime, |
| | | remark as remark |
| | | from t_order_transfer where driverId = #{driverId} |
| | | <if test="state == 1"> |
| | | and state != 1 |
| | | </if> |
| | | <if test="state == 2"> |
| | | and state = 7 |
| | | </if> |
| | | <if test="state == 3"> |
| | | and state = 10 |
| | | </if> |
| | | <if test="state == 4"> |
| | | and state in (6, 7, 8, 9) |
| | | </if> |
| | | order by insertTime desc |
| | | </select> |
| | | |
| | | <select id="queryOrderInfo" resultType="map"> |
| | | select |