郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package com.gkhy.safePlatform.doublePrevention.service.baseService;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gkhy.safePlatform.doublePrevention.entity.PreventDangerCheckTask;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventDangerCheckTaskQueryReqDTO;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO;
import com.gkhy.safePlatform.doublePrevention.repository.param.HandlerReportParam;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckTaskUpdateParams;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDeleteParams;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventTaskToUserParams;
 
import java.util.Date;
import java.util.List;
 
public interface PreventDangerCheckTaskService extends IService<PreventDangerCheckTask> {
 
    /**
     * 隐患排查任务-分页查询
     */
    IPage<PreventDangerCheckTask> getTaskPage(Page<Object> objectPage, PreventDangerCheckTaskQueryReqDTO taskQueryReqDTO);
    /**
     * 隐患排查任务-手动新增
     * ----应存在任务调度新增方式
     */
    int saveTask(PreventDangerCheckTask checkTask);
    /**
     * 隐患排查任务-修改
     */
    int updateTask(PreventDangerCheckTaskUpdateParams updateParams);
    /**
     * 隐患排查任务-删除
     */
    int deleteTask(PreventDeleteParams deleteParams);
    /**
     * 隐患排查任务-通过id查询信息
     */
    PreventDangerCheckTask getTaskById(Long checkTaskId);
    /**
     * 隐患排查任务-通过taskCode查询信息
     */
    PreventDangerCheckTask getTaskByCode(Long taskCode);
    /**
     * 隐患排查任务-通过id修改任务状态
     */
    int updateTaskStatus(Long taskId, Byte taskStatus);
    /**
     * 隐患排查任务-设置任务超时
     */
    int resetTaskStatus(Long taskId);
    /**
     * 隐患排查任务-通过作业id查询
     */
    List<PreventDangerCheckTask> getTaskByCheckWorkId(Long checkWorkId);
 
 
    /**
     * 排查任务-手工上报-配置
     */
    int updateCheckTaskReport(PreventHandReportConfigReqDTO preventHandReportConfigReqDTO);
 
 
 
    /**
     * 排查任务-上报数据
     */
    List<PreventDangerCheckTask> listReportTask();
 
    /**
     * 排查任务-上报数据状态变更
     */
    void updateTaskReportStatus(HandlerReportParam handlerReportParam);
    /**
     * 排查任务-认领任务
     */
    int taskToUser(PreventTaskToUserParams taskToUserParams);
    /**
     * 排查任务-分布式锁期间,检查任务是否已经生成
     */
    PreventDangerCheckTask getTaskByCheckWorkIdAndStartTime(Long workId, Date checkTime);
}