package cn.iocoder.yudao.module.jx.mapper;

import cn.iocoder.yudao.module.jx.domain.DriveSchoolCarRepair;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 车辆维修记录Mapper接口
 *
 * @author ruoyi
 * @date 2024-04-01
 */
@Mapper
public interface DriveSchoolCarRepairMapper
{
    /**
     * 查询车辆维修记录
     *
     * @param id 车辆维修记录主键
     * @return 车辆维修记录
     */
    public DriveSchoolCarRepair selectDriveSchoolCarRepairById(Long id);

    /**
     * 查询车辆维修记录列表
     *
     * @param driveSchoolCarRepair 车辆维修记录
     * @return 车辆维修记录集合
     */
    public IPage<DriveSchoolCarRepair> selectDriveSchoolCarRepairList(@Param("entity") DriveSchoolCarRepair driveSchoolCarRepair, Page<DriveSchoolCarRepair> page);
    public List<DriveSchoolCarRepair> selectDriveSchoolCarRepairListAll(DriveSchoolCarRepair driveSchoolCarRepair);

    /**
     * 新增车辆维修记录
     *
     * @param driveSchoolCarRepair 车辆维修记录
     * @return 结果
     */
    public int insertDriveSchoolCarRepair(DriveSchoolCarRepair driveSchoolCarRepair);

    /**
     * 修改车辆维修记录
     *
     * @param driveSchoolCarRepair 车辆维修记录
     * @return 结果
     */
    public int updateDriveSchoolCarRepair(DriveSchoolCarRepair driveSchoolCarRepair);

    /**
     * 删除车辆维修记录
     *
     * @param id 车辆维修记录主键
     * @return 结果
     */
    public int deleteDriveSchoolCarRepairById(Long id);

    /**
     * 批量删除车辆维修记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDriveSchoolCarRepairByIds(Long[] ids);
}
