郑永安
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.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.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.PreventHandReportConfigReqDTO;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventRectifyOverQueryReqDTO;
import com.gkhy.safePlatform.doublePrevention.repository.param.*;
import org.springframework.stereotype.Repository;
 
import java.util.Date;
import java.util.List;
 
@Repository
public interface PreventDangerManageRepository extends BaseMapper<PreventDangerManage> {
 
    /**
     * 隐患治理清单-分页查询
     */
    IPage<PreventDangerManage> getDangerManagePage(Page<Object> page, PreventDangerManageQueryReqDTO manageQueryReqDTO);
    /**
     * 隐患治理清单-修改
     */
    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();
    /**
     * 隐患-上报数据状态变更
     */
    int updateManageReportStatus(HandlerReportParam handlerReportParam);
 
    IPage<PreventDangerManage> getDangerManagePageTORectify(Page<Object> objectPage, PreventRectifyOverQueryReqDTO rectifyOverQueryReqDTO);
 
    Integer countByCreateTime(Date startTime,Date endTime);
 
    PreventDangerManage findByDangerSerialCode(String serialCode);
 
    /**
     * 统计I1
     */
    DataCountI1RespDO listMonthDataCountI1(DataCountIMonthParams countParams);
    /**
     * 数据统计-隐患数据统计-I2计算 - 月
     */
    DataCountI2RespDO listMonthDataCountI2(DataCountIMonthParams countParams);
}