package com.bonus.material.repair.mapper;

import java.util.List;
import com.bonus.material.repair.domain.RepairCost;

/**
 * 维修详细Mapper接口
 * 
 * @author xsheng
 * @date 2024-10-16
 */
public interface RepairCostMapper {
    /**
     * 查询维修详细
     * 
     * @param id 维修详细主键
     * @return 维修详细
     */
    public RepairCost selectRepairCostById(Long id);

    /**
     * 查询维修详细列表
     * 
     * @param repairCost 维修详细
     * @return 维修详细集合
     */
    public List<RepairCost> selectRepairCostList(RepairCost repairCost);

    /**
     * 新增维修详细
     * 
     * @param repairCost 维修详细
     * @return 结果
     */
    public int insertRepairCost(RepairCost repairCost);

    /**
     * 修改维修详细
     * 
     * @param repairCost 维修详细
     * @return 结果
     */
    public int updateRepairCost(RepairCost repairCost);

    /**
     * 删除维修详细
     * 
     * @param id 维修详细主键
     * @return 结果
     */
    public int deleteRepairCostById(Long id);

    /**
     * 批量删除维修详细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRepairCostByIds(Long[] ids);

    /**
     * 根据任务id删除维修详细
     * @param repairCost
     * @return
     */
    int deleteRepairCostByTaskId(RepairCost repairCost);
}
