package com.cpxt.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cpxt.biz.domain.BizCarState;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 车辆实时状态Mapper接口
 * 
 * @author ruoyi
 * @date 2024-12-18
 */
@Mapper
public interface BizCarStateMapper extends BaseMapper<BizCarState>
{
    @Select("select * from biz_car_state where vehicle_no = #{carNo}")
    BizCarState selectByCarNo(String carNo);

    @Select("select * from biz_car_state where car_id = ${carId}")
    BizCarState selectBizCarStateByCarId(Long carId);
}
