| | |
| | | </choose> |
| | | |
| | | </if> |
| | | and id in |
| | | ( |
| | | select driverId from t_driver_work where startTime < now() and state = 1 and `type` like CONCAT('%', #{type}, '%') |
| | | ) |
| | | <if test="8>type"> |
| | | <if test="null != type"> |
| | | and id in |
| | | ( |
| | | select driverId from t_driver_work where startTime < now() and state = 1 and `type` like CONCAT('%', #{type}, '%') |
| | | ) |
| | | </if> |
| | | |
| | | <if test="null != type and 8>type"> |
| | | and id in (select driverId from t_driver_orders where `type` = #{type}) |
| | | </if> |
| | | <if test="type>7"> |
| | | <if test="null != type and type>7"> |
| | | and id in (select driverId from t_driver_orders where `type` = 1) |
| | | </if> |
| | | </select> |