郑永安
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
83
84
85
86
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.PreventDangerCheckWork;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventDangerCheckWorkQueryReqDTO;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO;
import com.gkhy.safePlatform.doublePrevention.repository.param.CheckWorkAutoUpdateParams;
import com.gkhy.safePlatform.doublePrevention.repository.param.HandlerReportParam;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckWorkDeleteParams;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventDangerCheckWorkUpdateParams;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
 
public interface PreventDangerCheckWorkService extends IService<PreventDangerCheckWork> {
 
    /**
     * 隐患排查作业-分页查询
     */
    IPage<PreventDangerCheckWork> getCheckWorkPage(Page<Object> objectPage, PreventDangerCheckWorkQueryReqDTO workQueryReqDTO);
    /**
     * 隐患排查作业-新增
     */
    int saveCheckWork(PreventDangerCheckWork checkWorkParams);
    /**
     * 隐患排查作业-修改
     */
    int updateCheckWork(PreventDangerCheckWorkUpdateParams updateParams);
    /**
     * 隐患排查作业-删除
     */
    int deleteCheckWork(PreventDangerCheckWorkDeleteParams deleteParams);
    /**
     * 隐患排查作业-根据作业名称查找
     */
    PreventDangerCheckWork getWorkByName(String checkWorkName);
    /**
     * 隐患排查作业-任务列表
     */
    List<PreventDangerCheckWork> listCheckWork();
    /**
     * 隐患排查作业-根据任务单元查找
     */
    PreventDangerCheckWork getWorkByTaskUnitId(Long taskUnitId);
    /**
     * 隐患排查作业-根据Id查找
     */
    PreventDangerCheckWork getWorkById(Long workId);
    /**
     * 隐患排查作业  下次调度时间--上传调度时间
     * -根据Id
     */
    int updateCheckWorkLastTimeAndNextTime(CheckWorkAutoUpdateParams updateWorkParams);
    /**
     * 隐患排查作业 修改为调度中
     * -根据Id
     */
    void updateCheckWorkStatus(CheckWorkAutoUpdateParams updateParams);
    /**
     * 隐患排查作业 重置作业状态
     */
    int resetWorkStatus(Long workId);
    /**
     * 隐患排查作业 查询可调度的列表
     */
    List<PreventDangerCheckWork> listScheduleCheckWork();
    /**
     * 排查作业-手工上报-配置
     */
    int updateCheckWorkReport(PreventHandReportConfigReqDTO preventHandReportConfigReqDTO);
 
 
 
    /**
     * 上报数据,任务配置检索
     */
    List<PreventDangerCheckWork> listReportWork();
 
    /**
     * 上报数据,任务配置上报状态变更
     */
    void updateWorkReportStatus(HandlerReportParam handlerReportParam);
}