郑永安
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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.PreventDangerManage;
import com.gkhy.safePlatform.doublePrevention.entity.dto.DataCountI1RespDO;
import com.gkhy.safePlatform.doublePrevention.entity.dto.DataCountI2RespDO;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventDangerManageQueryReqDTO;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventDangerRectifyQueryReqDTO;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventHandReportConfigReqDTO;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventRectifyOverQueryReqDTO;
import com.gkhy.safePlatform.doublePrevention.repository.param.*;
 
import java.util.Date;
import java.util.List;
 
public interface PreventDangerManageService extends IService<PreventDangerManage> {
 
 
 
    /**
     * 隐患治理清单-分页查询
     */
    IPage<PreventDangerManage> getDangerManagePage(Page<Object> objectPage, PreventDangerManageQueryReqDTO manageQueryReqDTO);
    /**
     * 隐患治理清单-新增
     */
    int saveDangerManage(PreventDangerManage dangerManage);
    /**
     * 隐患治理清单-修改
     */
    int updateDangerManage(PreventDangerManageUpdateParams updateParams);
    /**
     * 隐患治理清单-删除
     */
    int deleteDangerManage(PreventDeleteParams deleteParams);
    /**
     * 隐患治理清单-根据dangerCode查询
     */
    PreventDangerManage getDangerManageByCode(String dangerCode);
    /**
     * 隐患治理清单-根据id查询
     */
    PreventDangerManage getDangerManageById(Long dangerManagerId);
    /**
     * 隐患治理清单-根据taskId查询
     */
    PreventDangerManage getDangerManageByTaskId(Long taskId);
    /**
     * 隐患治理清单-列表
     */
    List<PreventDangerManage> listDangerManage();
    /**
     * 隐患管理-手工上报-配置
     */
    int updateDangerManagerReport(PreventHandReportConfigReqDTO preventHandReportConfigReqDTO);
    /**
     * 隐患管理-验收
     */
    int updateRectifyResult(UpdateRectifyResultParams updateParams);
    /**
     * 隐患管理-延期状态
     */
    int updateManagerStatus(Long dangerManagerId, byte code);
    /**
     * 隐患管理-关闭隐患单
     */
    int closeDanger(CloseDangerParams closeDangerParams);
    /**
     * 隐患-整改完成的
     */
    List<PreventDangerManage> listRectifyOver(PreventRectifyOverQueryReqDTO rectifyOverQueryReqDTO);
 
 
 
    /**
     * 隐患-上报数据
     */
    List<PreventDangerManage> listReportDanger();
 
    /**
     * 隐患-上报数据状态变更
     */
    void updateManageReportStatus(HandlerReportParam handlerReportParam);
 
    /**
     * 统计指定时间区间内创建的数量
     * @param startTime
     * @param endTime
     * @return
     */
    int countByCreateTime(Date startTime, Date endTime);
 
    /**
     * 根据隐患编号查询隐患信息
     * @param serialCode
     * @return
     */
    PreventDangerManage findByDangerSerialCode(String serialCode);
 
    IPage<PreventDangerManage> getDangerManagePageTORectify(Page<Object> objectPage, PreventRectifyOverQueryReqDTO rectifyOverQueryReqDTO);
    /**
     * 统计I1
     */
    DataCountI1RespDO listMonthDataCountI1(DataCountIMonthParams countParams);
    /**
     * 数据统计-隐患数据统计-I2计算 - 月
     */
    DataCountI2RespDO listMonthDataCountI2(DataCountIMonthParams countParams);
}