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<FirefightersExcelDto> exportToExcel(Boolean isDelete);

    List<String> getFirefightersName( );
}
