package com.sckw.fleet.dao;

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

/**
 * @desc 车队-车辆 Mapper 接口
 * @author zk
 * @date 2023/7/6 0006
 */
@Mapper
public interface KwfFleetTruckMapper extends BaseMapper<KwfFleetTruck> {

    /**
     * 查询
     * @param params 参数
     * @return 车队车辆信息
     */
    KwfFleetTruck findByTruckFleet(KwfFleetTruck params);

    /**
     * 查询车队班组
     * @param truckId 车辆id
     * @param entId 企业id
     * @author zk
     * @date 2023/7/20
     * @return 车队信息
     **/
    KwfFleet findByFleetTruck(@Param("truckId") Long truckId, @Param("entId") Long entId);
}
