package com.yuchen.saas.park.service.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.dto.fire.WarningAddDTO;
import com.yuchen.saas.park.api.dto.fire.WarningPageQueryDTO;
import com.yuchen.saas.park.api.entity.park.PmgBatFireWarning;
import com.yuchen.saas.park.api.vo.park.fire.FireWarningVO;
import com.yuchen.saas.park.api.vo.park.fire.LatestWarningQueryVO;
import org.nest.springwrap.core.mp.base.BaseService;
import org.nest.springwrap.core.mp.support.Query;

/**
 * @author 颜艺波
 * @date 2022/6/27 15:50
 * @Description
 */
public interface PmgBatFireWarningService extends BaseService<PmgBatFireWarning> {

    /**
     * 最新告警数据查询
     * @param parkId
     * @return
     */
    LatestWarningQueryVO latestWarningQuery(Long parkId);

    /**
     * 消防告警分页查询
     * @param warningPageQueryDTO
     * @param query
     * @return
     */
    IPage<FireWarningVO> warningPageQuery(WarningPageQueryDTO warningPageQueryDTO, Query query);

    /**
     * 新增数据
     * @param warningAddDTO
     * @return
     */
    Boolean add(WarningAddDTO warningAddDTO);
}
