puzhibing
2024-02-07 387f61d55a8e20bc772b026cba4f8c34dfce5665
DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/CarMapper.xml
@@ -53,8 +53,7 @@
        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">
@@ -77,6 +76,6 @@
        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>