郑永安
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
87
88
89
90
91
92
93
94
package com.gkhy.safePlatform.doublePrevention.service;
 
import com.gkhy.safePlatform.commons.vo.ResultVO;
import com.gkhy.safePlatform.doublePrevention.entity.PreventDangerManage;
import com.gkhy.safePlatform.doublePrevention.entity.PreventDangerRectify;
import com.gkhy.safePlatform.doublePrevention.entity.PreventRiskAnaUnit;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.*;
import com.gkhy.safePlatform.doublePrevention.entity.dto.resp.PreventDangerManageQueryRespDTO;
 
import java.time.LocalDate;
 
public interface RectifyService {
 
    //隐患治理
    /**
     * 隐患治理清单-分页查询
     */
    ResultVO<PreventDangerManage> getDangerManagePage(Long userId, PreventDangerManageQueryReqDTO manageQueryReqDTO);
    /**
     * 隐患治理清单-新增
     */
    ResultVO<PreventDangerManage> saveDangerManage(Long userId, PreventDangerManageSaveReqDTO manageSaveReqDTO);
    /**
     * 隐患治理清单-修改
     */
    ResultVO<PreventDangerManage> updateDangerManage(Long userId, PreventDangerManageUpdateReqDTO manageSaveReqDTO);
    /**
     * 隐患治理清单-删除
     */
    ResultVO<PreventDangerManage> deleteDangerManage(Long userId, PreventDangerManageDeleteReqDTO manageDeleteReqDTO);
 
 
    //隐患整改
    /**
     * 隐患整改清单-分页查询
     */
    ResultVO<PreventDangerRectify> getDangerRectifyPage(Long userId, PreventDangerRectifyQueryReqDTO rectifyQueryReqDTO);
    /**
     * 隐患整改清单-新增
     */
    ResultVO<PreventDangerRectify> saveDangerRectify(Long userId, PreventDangerRectifySaveReqDTO rectifySaveReqDTO);
    /**
     * 隐患整改清单-修改
     */
    ResultVO<PreventDangerRectify> updateDangerRectify(Long userId, PreventDangerRectifyUpdateReqDTO rectifyUpdateReqDTO);
    /**
     * 隐患整改清单-删除
     */
    ResultVO<PreventDangerRectify> deleteDangerRectify(Long userId, PreventDangerRectifyDeleteReqDTO rectifyDeleteReqDTO);
    /**
     * 隐患整改清单-申请验收
     */
    ResultVO<PreventDangerRectify> applyReport(Long valueOf, PreventDangerReportRectifyReqDTO reportRectiity);
    /**
     * 隐患治理清单-列表
     */
    ResultVO<PreventDangerManage> listDangerManage(Long valueOf);
    /**
     * 隐患管理-手工上报-配置
     */
    ResultVO<PreventRiskAnaUnit> updateDangerManagerReport(Long valueOf, PreventHandReportConfigReqDTO preventHandReportConfigReqDTO);
    /**
     * 隐患整改--延期
     */
    ResultVO<PreventDangerRectify> timeOutRectify(Long valueOf, PreventDangerRectifyUpdateReqDTO updateReqDTO);
    /**
     * 隐患整改清单--验收
     */
    ResultVO<PreventDangerRectify> reportRectify(Long valueOf, PreventDangerReportRectifyReqDTO reportRectiity);
 
    /**
     * 隐患整改清单-查询:待验收与已验收
     */
    ResultVO<PreventDangerRectify> getRectifyOverPage(Long uid, PreventRectifyOverQueryReqDTO rectifyOverQueryReqDTO);
    /**
     * 隐患管理-关闭隐患单
     */
    ResultVO<PreventRiskAnaUnit> closeDanger(Long uid, PreventCloseDangerReqDTO closeDangerReqDTO);
 
    /**
     * 统计指定日期创建的隐患数量
     * @param date
     * @return
     */
    ResultVO countDangerByDate(LocalDate date);
 
    /**
     * 用隐患编号查询隐患信息
     * @param serialCode
     * @return
     */
    ResultVO<PreventDangerManageQueryRespDTO> findByDangerSerialCode(String serialCode);
 
}