Newer
Older
huludao / src / main / java / com / newfiber / api / pc / service / MeetAlterService.java
package com.newfiber.api.pc.service;

import com.baomidou.mybatisplus.service.IService;
import com.newfiber.api.core.commons.PageRequestObject;
import com.newfiber.api.core.commons.PageResultObject;
import com.newfiber.api.pc.dto.AlertStatisticsDTO;
import com.newfiber.api.pc.dto.MeetAlertDTO;
import com.newfiber.api.pc.dto.MeetAlertSerchDTO;
import com.newfiber.api.pc.model.meet.MeetAlertMedia;
import com.newfiber.api.pc.model.meet.MeetAlter;
import com.newfiber.api.pc.model.vo.AlertStatisticsVo;
import com.newfiber.api.pc.model.vo.AlertTypeVo;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;

import java.util.List;

/**
 * @Author:zzh
 * @CreateDate:2020/11/27 14:16
 * @Description:
 */
public interface MeetAlterService extends IService<MeetAlter> {
    void addAlert(MeetAlertDTO meetAlertDTO, String userNo);

    void overAlert(MeetAlertMedia meetAlertMedia, HttpServletRequest request);

    PageResultObject<MeetAlter> queryPage(PageRequestObject<MeetAlertSerchDTO> pafeObject, String useNo, String token);

    MeetAlter viewDetail(Integer aId);

    /**
     * 警情统计
     * @param pageRequestObject
     * @return
     */
    PageResultObject<AlertStatisticsVo> alertStatistics(PageRequestObject<AlertStatisticsDTO> pageRequestObject);

    /**
     * 根据警情类别查询警情列表
     * @param pageRequestObject
     * @return
     */
    PageResultObject<MeetAlter> queryAlertByTypeId( PageRequestObject<Integer> pageRequestObject);

    /**
     * 查询已有警情中的所有类别
     * @return
     */
    List<AlertTypeVo> selectAlertType();
}