package com.sckw.fleet.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.fleet.model.KwfFleet;
import com.sckw.fleet.model.vo.KwfFleetTruckCountVo;
import com.sckw.fleet.model.vo.KwfFleetVo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;

/**
 * @desc 车队 Mapper 接口
 * @author zk
 * @date 2023/7/6 0006
 */
@Mapper
public interface KwfFleetMapper extends BaseMapper<KwfFleet> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    List<KwfFleetVo> findPage(Map<String, Object> params);

    /**
     * 查询
     * @param params
     * @return
     */
    List<Map<String, Object>> findList(Map<String, Object> params);

    /**
     * 车辆实况统计
     * @param params {entId 企业ID, fleetName 车队班组名称}
     * @return
     */
    List<KwfFleetTruckCountVo> findTruckList(Map<String, Object> params);
}
