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

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elephant.framework.galaxy.aroad.module.emergencyplan.dto.EmergencyPlanDto;
import com.elephant.framework.galaxy.aroad.module.emergencyplan.entity.EmergencyPlan;

/**
 * 应急预案表
 *
 * @author songwenjie
 * @date 2019-04-25 09:47:42
 */
public interface EmergencyPlanService extends IService<EmergencyPlan> {

    /**
     * @Description: 新增应急预案
     * @Param: [plan]
     * @return: boolean
     * @Author: songwenjie
     * @Date: 2019/4/25
     */
    boolean save(EmergencyPlanDto plan);

    /**
     * @Description:  更新应急预案
     * @Param: [plan]
     * @return: boolean
     * @Author: songwenjie
     * @Date: 2019/4/25
     */
    boolean updateById(EmergencyPlanDto plan);

    /**
     * @Description: 分页获取应急预案信息
     * @Param: [page, planKeyword]
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.elephant.framework.galaxy.aroad.module.emergencyplan.dto.EmergencyPlanDto>
     * @Author: songwenjie
     * @Date: 2019/4/25
     */
    IPage<EmergencyPlanDto> getPlanPage(Page page, EmergencyPlan emergencyPlan);
}
