package com.gkhy.safePlatform.safeCheck.service.baseService;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.gkhy.safePlatform.safeCheck.entity.SafeCheckWork;
|
|
import java.util.Date;
|
import java.util.List;
|
|
public interface SafeCheckWorkService extends IService<SafeCheckWork> {
|
/**
|
* @description 新增一个调度信息
|
*/
|
int saveWork(SafeCheckWork work);
|
|
/**
|
* @description 根据巡检单元id查询对应的调度信息记录
|
*/
|
SafeCheckWork getWorkByTaskUnitId(Long taskUnitId, int deleteStatus);
|
|
/**
|
* @description 根据调度信息id删除调度记录
|
*/
|
int deleteWorkById(SafeCheckWork work, List<Integer> workStatus,int deleteStatus);
|
|
/**
|
* @description 根据workid更新work的状态
|
*/
|
void updateWorkStatusById(SafeCheckWork work, int deleteStatus);
|
|
/**
|
* @description 根据workid更新任务单元中主部分关于调度的信息
|
*/
|
void updateWorkInfoById(SafeCheckWork newWork, int deleteStatus);
|
|
/**
|
* @description 获取未来30分钟内的任务单元
|
*/
|
List<SafeCheckWork> findActiveWorkListByTime(Date startTime, Date endTime,int status);
|
|
/**
|
* @description 根据work的id获取work调度表的记录
|
*/
|
SafeCheckWork getWorkById(Long workId);
|
|
/**
|
* @description 根据workid将work状态由调度中状态改为开启状态
|
*/
|
int resetWorkStatus(SafeCheckWork work, Byte newStatus);
|
|
/**
|
* @description 获取当前异常调度信息(下次通知时间在当前时间之前的 状态为为开启或者调度中的)
|
*/
|
List<SafeCheckWork> findFaildScheduleList(Date nowTime, Byte openStatus,Byte dispatchingStatus);
|
|
/**
|
* @description 根据work的id和work状态查询work
|
*/
|
SafeCheckWork getWorkByIdAndWorkStatus(Long workId, Byte status);
|
}
|