package com.elephant.framework.galaxy.aroad.module.emergencyevent.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elephant.framework.galaxy.aroad.module.emergencyevent.entity.EmergencyEvent;

/**
 * 应急事件表
 *
 * @author songwenjie
 * @date 2019-05-08 14:43:42
 */
public interface EmergencyEventService extends IService<EmergencyEvent> {

    /**
     * @Description: 分页获取应急事件
     * @param: [page, event]
     * @return: com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.elephant.framework.galaxy.aroad.module.emergencyevent.entity.EmergencyEvent>
     * @Author: songwenjie
     * @Date: 2019/5/15
     */
    Page<EmergencyEvent> getEventPage (Page page, EmergencyEvent event);

    /**
     * @Description: 新增（上报）应急事件
     * @Param: [event]
     * @return: boolean
     * @Author: songwenjie
     * @Date: 2019/5/8
     */
    boolean saveEvent(EmergencyEvent event);

    /**
     * @Description: 更新应急事件的状态
     * @param:
     * @return:
     * @Author: songwenjie
     * @Date: 2019/5/15
     */
    boolean updateStatus(Integer eventId,String status);
}
