IEmergencyRiskEventService.java 1.9 KB
package com.skua.modules.emergency.service;

import com.skua.modules.emergency.dto.EmergencyRiskEventAddDTO;
import com.skua.modules.emergency.dto.EmergencyRiskEventHandleDto;
import com.skua.modules.emergency.entity.EmergencyRiskEvent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skua.modules.emergency.vo.DangerDatabaseResult;
import com.skua.modules.emergency.vo.EventOverviewVO;
import com.skua.modules.emergency.vo.MapDatabaseResult;
import com.skua.modules.emergency.vo.RiskDatabaseResult;

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

/**
 * 应急风险事件
 */
public interface IEmergencyRiskEventService extends IService<EmergencyRiskEvent> {

    /**
     * 开始流程
     * @param emergencyRiskEvent
     */
    void startProcess(EmergencyRiskEventAddDTO emergencyRiskEvent);

    /**
     * 应急风险事件-处理
     * @param dto
     */
    void handle(EmergencyRiskEventHandleDto dto);

    /**
     * 安全隐患事件数量统计
     * @param year
     * @return
     */
    Map<String, Object> getCount(String year);

    /**
     * 风险库统计
     * @return
     */
    List<RiskDatabaseResult> getRiskList(String year);

    /**
     * 隐患排查巡检统计
     * @return
     */
    List<DangerDatabaseResult> getDangerList(String departIds, String startDate,String endDate);

    /**
     * 地图隐患排查数量
     * @return
     */
    List<MapDatabaseResult> getMapData(String departIds,  String startDate,String endDate);

    /***
     * 风险库统计
     * @param departIds
     * @param startDate
     * @param endDate
     * @return
     */
    RiskDatabaseResult getRiskLibraryStatistics(String departIds, String startDate, String endDate);

    /***
     * 风险库统计列表
     * @param departIds
     * @param startDate
     * @param endDate
     * @return
     */
    public  List<RiskDatabaseResult> getRiskLibraryStatisticsList(String departIds, String startDate, String endDate);
}