| | |
| | | updateUser as updateUser |
| | | from t_driver where flag != 3 and authState = 2 and carId = #{carId} |
| | | </select> |
| | | |
| | | <select id="getServerDriverList" resultType="Driver"> |
| | | select a.* from t_driver a |
| | | left join t_driver_service b on (a.id = b.driverId) |
| | | left join t_driver_work c on (a.id = c.driverId) |
| | | where a.companyId = #{companyId} and a.authState = 2 and a.state = 2 and a.flag != 3 and b.type = #{orderType} and c.state = 1 and c.type like CONCAT('%', #{orderType}, '%') and c.endTime is null |
| | | </select> |
| | | </mapper> |