package com.njzscloud.supervisory.biz.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.biz.pojo.entity.BizWarnEntity;
import com.njzscloud.supervisory.biz.pojo.result.BizWarnDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 预警
 */
@Mapper
public interface BizWarnMapper extends BaseMapper<BizWarnEntity> {

    /**
     * 分页查询预警详情（包含关联信息）
     */
    IPage<BizWarnDetailVO> selectWarnDetailPage(Page<Object> page, @Param("ew") QueryWrapper<Object> ew);

    /**
     * 根据ID查询预警详情（包含关联信息）
     */
    BizWarnDetailVO selectWarnDetailById(@Param("id") Long id);

}
