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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.elevator.api.entity.AlertPlaceStatistics;
import org.apache.ibatis.annotations.Param;

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

/**
 *  Mapper 接口
 *
 * @author system_generator
 * @date 2023-11-08
 */
public interface AlertPlaceStatisticsMapper extends BaseMapper<AlertPlaceStatistics> {

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

    Map<String, Integer> getTotal(@Param("startDate")String startDate, @Param("endDate")String endDate);

    AlertPlaceStatistics getStatisticsMessage(@Param("placeCode")String placeCode, @Param("startDate")String startDate, @Param("endDate")String endDate);
}
