package org.jeecg.modules.newWarning.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;
import org.jeecg.modules.newWarning.dto.WarnLogComprehensiveDto;
import org.jeecg.modules.newWarning.dto.WarnLogStatisticsDto;
import org.jeecg.modules.newWarning.entity.HookLoadWarnLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.newWarning.entity.NewWarnHistory;
import org.jeecg.modules.newWarning.params.WarnLogCountParams;

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

/**
 * @author 费玉泉
 * @description 针对表【HOOK_LOAD_WARN_LOG(钩载预警数据表)】的数据库操作Mapper
 * @createDate 2024-05-30 09:23:16
 * @Entity org.jeecg.modules.newWarning.entity.HookLoadWarnLog
 */
public interface HookLoadWarnLogMapper extends BaseMapper<HookLoadWarnLog> {
    NewWarnHistory getOneWarning(@Param("startTime") String startTime,
                                 @Param("endTime") String endTime,
                                 @Param("jh") String jh);

    List<WarnLogComprehensiveDto> getWarnLogList(@Param("params") HashMap<String, Object> params);

    List<WarnLogStatisticsDto> getWarnLogCount(@Param("ew") Wrapper<WarnLogCountParams> wrapper);
}




