| | |
| | | from t_car a |
| | | left join t_car_model b on (a.carModelId = b.id) |
| | | left join t_car_brand c on (b.brandId = c.id) |
| | | where a.state = 1 |
| | | and a.driverId=#{driverId} |
| | | where a.state = 1 and authState != 4 and a.driverId=#{driverId} and a.id != (select carId from t_driver where id = #{driverId}) |
| | | </select> |
| | | |
| | | <select id="query" resultType="com.stylefeng.guns.modular.system.model.Car"> |
| | |
| | | state as state, |
| | | addType as addType, |
| | | addObjectId as addObjectId |
| | | from t_car where state = 1 and carLicensePlate = #{licensePlate} |
| | | from t_car where state = 1 and carLicensePlate = #{licensePlate} and authState != 4 |
| | | </select> |
| | | </mapper> |