| | |
| | | `type` as `type` |
| | | from t_driver_service where driverId = #{uid} |
| | | </select> |
| | | <select id="queryOrderDataFromDriver" resultType="com.stylefeng.guns.modular.system.model.vo.DriverOrderDataNextVo"> |
| | | select * from ( |
| | | select |
| | | orderNum, |
| | | 1 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_private_car |
| | | where driverId = #{uid} and state !=10 |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 2 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_taxi |
| | | where driverId = #{uid} and state !=10 |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 3 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_cross_city |
| | | where driverId = #{uid} and state !=10 |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | ) t1 |
| | | order by t1.orderTime desc |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </select> |
| | | <select id="queryOrderMoneyDataFromDriver" resultType="com.stylefeng.guns.modular.system.model.vo.DriverOrderDataNextVo"> |
| | | select * from ( |
| | | select |
| | | orderNum, |
| | | 1 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_private_car |
| | | where driverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 2 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_taxi |
| | | where driverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 3 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_cross_city |
| | | where driverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | ) t1 |
| | | order by t1.orderTime desc |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </select> |
| | | <select id="queryOrderMoneyDataFromDriverAll" resultType="com.stylefeng.guns.modular.system.model.vo.DriverOrderDataNextVo"> |
| | | select * from ( |
| | | select |
| | | orderNum, |
| | | 1 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_private_car |
| | | where driverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 2 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_taxi |
| | | where driverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 3 as type, |
| | | insertTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | orderMoney |
| | | from t_order_cross_city |
| | | where driverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and insertTime between #{sTime} and #{eTime} |
| | | </if> |
| | | ) t1 |
| | | order by t1.orderTime desc |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </select> |
| | | <select id="queryOrderPromotionFromDriver" resultType="com.stylefeng.guns.modular.system.model.vo.DriverOrderDataNextVo"> |
| | | select * from ( |
| | | select |
| | | orderNum, |
| | | 1 as type, |
| | | successTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | promotionMoney as orderMoney |
| | | from t_order_private_car |
| | | where promotionDriverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and successTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 2 as type, |
| | | successTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | promotionMoney as orderMoney |
| | | from t_order_taxi |
| | | where promotionDriverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and successTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 3 as type, |
| | | successTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | promotionMoney as orderMoney |
| | | from t_order_cross_city |
| | | where promotionDriverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and successTime between #{sTime} and #{eTime} |
| | | </if> |
| | | ) t1 |
| | | order by t1.orderTime desc |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </select> |
| | | |
| | | <select id="queryOrderPromotionFromDriverAll" resultType="com.stylefeng.guns.modular.system.model.vo.DriverOrderDataNextVo"> |
| | | select * from ( |
| | | select |
| | | orderNum, |
| | | 1 as type, |
| | | successTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | promotionMoney as orderMoney |
| | | from t_order_private_car |
| | | where promotionDriverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and successTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 2 as type, |
| | | successTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | promotionMoney as orderMoney |
| | | from t_order_taxi |
| | | where promotionDriverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and successTime between #{sTime} and #{eTime} |
| | | </if> |
| | | |
| | | union all |
| | | |
| | | select |
| | | orderNum, |
| | | 3 as type, |
| | | successTime as orderTime, |
| | | id as orderId, |
| | | boardingAddress as startAddress, |
| | | getoffAddress as endAddress, |
| | | state, |
| | | promotionMoney as orderMoney |
| | | from t_order_cross_city |
| | | where promotionDriverId = #{uid} and state in (8,9) |
| | | <if test="sTime !=null"> |
| | | and successTime between #{sTime} and #{eTime} |
| | | </if> |
| | | ) t1 |
| | | order by t1.orderTime desc |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |