package com.zhgd.xmgl.modules.basicdata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhgd.xmgl.modules.basicdata.entity.AiMonitorAlarm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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

/**
 * @Description: AI预警记录
 * @author： pengj
 * @date：   2023-03-04
 * @version： V1.0
 */
@Mapper
public interface AiMonitorAlarmMapper extends BaseMapper<AiMonitorAlarm> {

    Page<AiMonitorAlarm> pageList(Page page, @Param(Constants.WRAPPER)Wrapper<AiMonitorAlarm> wrapper);

    List<Map<String, Object>> getCountGroupByType(String deviceCode);

    Integer getCountForToDay(String projectSn, String engineeringSn);
}
