package com.sckw.fleet.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.fleet.model.KwfDriverScoreDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 司机评分明细Mapper接口
 * 
 * @author tangyishan
 * @date 2025-12-11
 */
@Mapper
public interface KwfDriverScoreDetailMapper extends BaseMapper<KwfDriverScoreDetail>
{
    /**
     * 查询司机评分明细
     * 
     * @param id 司机评分明细主键
     * @return 司机评分明细
     */
    public KwfDriverScoreDetail selectKwfDriverScoreDetailById(Long id);

    /**
     * 查询司机评分明细列表
     * 
     * @param kwfDriverScoreDetail 司机评分明细
     * @return 司机评分明细集合
     */
    public List<KwfDriverScoreDetail> selectKwfDriverScoreDetailList(KwfDriverScoreDetail kwfDriverScoreDetail);

    /**
     * 新增司机评分明细
     * 
     * @param kwfDriverScoreDetail 司机评分明细
     * @return 结果
     */
    public int insertKwfDriverScoreDetail(KwfDriverScoreDetail kwfDriverScoreDetail);

    /**
     * 批量新增司机评分明细
     *
     * @param driverScoreDetails 司机评分明细
     * @return 结果
     */
    public int insertBatch(@Param("driverScoreDetails") List<KwfDriverScoreDetail> driverScoreDetails);

    /**
     * 修改司机评分明细
     * 
     * @param kwfDriverScoreDetail 司机评分明细
     * @return 结果
     */
    public int updateKwfDriverScoreDetail(KwfDriverScoreDetail kwfDriverScoreDetail);

    /**
     * 删除司机评分明细
     * 
     * @param id 司机评分明细主键
     * @return 结果
     */
    public int deleteKwfDriverScoreDetailById(Long id);

    /**
     * 批量删除司机评分明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKwfDriverScoreDetailByIds(Long[] ids);
}
