郑永安
2023-07-20 66de1a166391376d71a028c2069e90e9c509d499
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package com.gk.hotwork.doublePrevention.repository;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gk.hotwork.doublePrevention.entity.PreventDangerCheckWork;
import com.gk.hotwork.doublePrevention.entity.dto.req.PreventDangerCheckWorkQueryReqDTO;
import com.gk.hotwork.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO;
import com.gk.hotwork.doublePrevention.repository.param.CheckWorkAutoUpdateParams;
import com.gk.hotwork.doublePrevention.repository.param.HandlerReportParam;
import com.gk.hotwork.doublePrevention.repository.param.PreventDangerCheckWorkDeleteParams;
import com.gk.hotwork.doublePrevention.repository.param.PreventDangerCheckWorkUpdateParams;
 
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.Date;
import java.util.List;
 
@Repository
public interface PreventDangerCheckWorkRepository extends BaseMapper<PreventDangerCheckWork> {
 
    /**
     * 隐患排查作业-分页查询
     */
    IPage<PreventDangerCheckWork> getCheckWorkPage(Page<Object> page, PreventDangerCheckWorkQueryReqDTO workQueryReqDTO);
    /**
     * 隐患排查作业-修改
     */
    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();
    /**
     * 上报数据,任务配置上报状态变更
     */
    int updateWorkReportStatus(HandlerReportParam handlerReportParam);
 
 
    /**
     * 排查作业-有问题的work
     */
    List<PreventDangerCheckWork> listErrorCheckWork(Date date);
    /**
     * 排查作业-重置错误时间
     */
    int resetErrorWork(Date resetTime, Long id);
    /**
     * 排查作业-检查待执行列表
     */
    List<PreventDangerCheckWork> listExecCheckWork(@Param("startTime") Date startTime,@Param("endTime")  Date endTime);
    /**
     * 排查作业-检查待执行列表
     */
    int resetCheckWorkStatus(Long Id);
}