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.VehicleBusinessDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 车辆业务信息 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface VehicleBusinessMapper extends BaseMapperX<VehicleBusinessDO> {

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

}
