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

import cn.iocoder.yudao.module.rescue.domain.RescueOrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 救援订单Mapper接口
 * 
 * @author zcy
 * @date 2023-09-19
 */
@Mapper
public interface RescueOrderInfoMapper  extends BaseMapper<RescueOrderInfo>
{
    /**
     * 查询救援订单
     * 
     * @param id 救援订单主键
     * @return 救援订单
     */
    public RescueOrderInfo selectRescueOrderInfoById(Long id);

    /**
     * 查询救援订单列表
     * 
     * @param rescueOrderInfo 救援订单
     * @return 救援订单集合
     */
    public List<RescueOrderInfo> selectRescueOrderInfoList(RescueOrderInfo rescueOrderInfo);
    Double avgPartnerScore(@Param("driverId") Long driverId);
}
