package com.artfess.rescue.patrol.manager;

import com.artfess.base.query.PageList;
import com.artfess.base.query.QueryFilter;
import com.artfess.rescue.patrol.model.BizInspectionPlan;
import com.artfess.base.manager.BaseManager;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * 巡检计划表：用于生成巡检任务的表 服务类
 *
 * @company 阿特菲斯信息技术有限公司
 * @author 系统管理员
 * @since 2024-08-02
 */
public interface BizInspectionPlanManager extends BaseManager<BizInspectionPlan> {

    boolean saveOrUpdateInfo(BizInspectionPlan trainTaskConf) throws SchedulerException;

    boolean deleteById(String id) throws SchedulerException;

    boolean toggleTriggerRun(String id) throws Exception;

    boolean executeJob(List<String> id) throws SchedulerException;

    BizInspectionPlan findById(String id);

    PageList<BizInspectionPlan> findByPage(QueryFilter<BizInspectionPlan> queryFilter);

    boolean push(String id);
}
