| | |
| | | <result column="laveBusinessMoney" property="laveBusinessMoney" /> |
| | | <result column="laveBusinessMoney" property="laveBusinessMoney" /> |
| | | <result column="appletsOpenId" property="appletsOpenId"/> |
| | | <result column="email" property="email"/> |
| | | |
| | | |
| | | <result column="flag" property="flag"/> |
| | |
| | | |
| | | |
| | | <select id="queryIdleDriver_" resultType="Driver"> |
| | | select * from ( |
| | | select |
| | | id as id, |
| | | account as account, |
| | |
| | | ) |
| | | and id in (select driverId from t_driver_orders where `type` = #{type}) |
| | | and carId in (select carId from t_car_service where `type` = #{type} |
| | | |
| | | <if test="null != serverCarModelId"> |
| | | and serverCarModelId = #{serverCarModelId} |
| | | </if> |
| | | ) |
| | | ) as aa where aa.id not in ( |
| | | select driverId from t_order_private_car where isDelete = 1 and driverPay = 1 and state in (7, 8, 9) |
| | | union all |
| | | select driverId from t_order_logistics where isDelete = 1 and driverPay = 1 and state != 10 |
| | | ) |
| | | </select> |
| | | |
| | | |