package com.muyu.breakdown.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.breakdown.domain.SysCarFault;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassDescription: 车辆故障管理Mapper接口
 * @JdkVersion: 1.8
 * @Author: YZL
 * @Created: 2024/9/20 10:57
 */
@Mapper
public interface SysCarFaultMapper extends BaseMapper<SysCarFault>{

    //根据添加的故障码进行查询
    @Select("select fault_code from sys_car_fault where fault_code=#{faultCode}")
     SysCarFault selectFaultByFaultCode(String faultCode);

    /**
     *  查询故障码信息
     * @param ids 故障码信息主键
     * @return 故障码信息
     */
    public List<SysCarFault> selectSysCarFaultIds(String[] ids);




}
