package com.yeejoin.amos.boot.module.common.api.mapper;

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

import com.yeejoin.amos.boot.module.common.api.dto.FirefightersExcelDto;
import com.yeejoin.amos.boot.module.common.api.dto.FirefightersZhDto;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.biz.common.utils.FirefightersTreeDto;
import com.yeejoin.amos.boot.module.common.api.dto.FirefightersDto;
import com.yeejoin.amos.boot.module.common.api.entity.Firefighters;

/**
 * 消防队员 Mapper 接口
 *
 * @author tb
 * @date 2021-06-07
 */
public interface FirefightersMapper extends BaseMapper<Firefighters> {


    List<FirefightersZhDto> getFirefighters(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize,
                                       @Param("par") FirefightersDto par);

    Map<String, Long> getFirefightersCount(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize, @Param(
            "par") FirefightersDto par);

    Map<String, Object> listToSelectById(@Param("id") Long id);

    List<FirefightersTreeDto> getFirefightersJobTitleCount();

    List<Map<String,String>> getFirefightersName( );

	List<FirefightersExcelDto> exportToExcel(Boolean isDelete, String name, String postQualification, String fireTeamId,
			String state, String areasExpertise, String jobTitle);

	List<FirefightersDto> queryById(@Param("gw")String[] gw);
}
