package com.sckw.fleet.dao;

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

import java.util.Map;

/**
 * @desc 车队-司机 Mapper 接口
 * @author zk
 * @date 2023/7/6 0006
 */
@Mapper
public interface KwfFleetDriverMapper extends BaseMapper<KwfFleetDriver> {

    /**
     * 查询
     * @param params 参数
     * @return
     */
    KwfFleetDriver findByTruckDriver(KwfFleetDriver params);

    /**
     * @param driverId 司机id
     * @param entId 企业id
     * @desc 查询车队班组
     * @author zk
     * @date 2023/7/20
     **/
    KwfFleet findByFleetDriver(@Param("driverId") Long driverId, @Param("entId") Long entId);
}
