package cn.iocoder.yudao.module.asset.dal.mysql.vehicle;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.asset.dal.dataobject.vehicle.VehicleLocationDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 车辆位置信息 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface VehicleLocationMapper extends BaseMapperX<VehicleLocationDO> {

    default List<VehicleLocationDO> selectByVehicleIds(List<Long> vehicleIds) {
        return selectList(new LambdaQueryWrapperX<VehicleLocationDO>()
                .in(VehicleLocationDO::getVehicleId, vehicleIds));
    }

}
