双重预防项目-国泰新华二开定制版
SZH
2022-08-20 f9f0687195e0fe349185437d22c495d74c8d4a20
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
package com.ruoyi.project.tr.report.mapper;
 
import com.ruoyi.project.tr.report.domain.Danger;
import com.ruoyi.project.tr.report.domain.DangerByTime;
import com.ruoyi.project.tr.report.domain.Report;
import com.ruoyi.project.tr.report.domain.RiskDomain;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
public interface ReportMapper {
    /**
     * 查询按部门分类风险
     * @return
     */
    List<Report> selectDeptDangers(long companyId);
 
    /**
     * 查询按隐患类别分类风险
     * @return
     */
    List<Report> selectTroubleTypeDangers(long companyId);
 
    /**
     * 按月查询隐患分类数据
     * @param date 当前时间往前推一年
     * @return
     */
    List<DangerByTime> selectDangersByMonths(@Param("date") Date date, @Param("companyId") long companyId);
 
    /**
     * 按年查询隐患分类数据
     * @return
     */
    List<DangerByTime> selectDangersByYear(long companyId);
 
    /**
     * 根据部门分类查询风险状况
     * @param companyId
     * @return
     */
    List<RiskDomain> selectRiskByDept(long companyId);
 
    /**
     * 根据区域分类查询风险状况
     * @param companyId
     * @return
     */
    List<RiskDomain> selectRiskByRegion(long companyId);
 
    /**
     * 查询区域信息
     * @param companyId
     * @return
     */
    List<RiskDomain> selectRegion(long companyId);
 
    /**
     * 查询部门信息
     * @param companyId
     * @return
     */
    List<RiskDomain> selectDept(long companyId);/**
     * 查询风险单元信息
     * @param companyId
     * @return
     */
    List<RiskDomain> selectRiskPoint(@Param("riskType") int riskType, @Param("companyId") long companyId);
    /**
     * 查询风险趋势信息
     * @param companyId
     * @return
     */
    List<RiskDomain> selectRiskTrend(long companyId);
 
    /**
     * 查询区域隐患
     * @param companyId
     * @return
     */
    List<Report> selectDangerByRegion(long companyId);
 
 
    /**
     * 查询区域隐患
     * @param companyId
     * @return
     */
    List<Report> selectDangerByRegionByCompanyId147(long companyId);
 
 
    /**
     *  查询风险待辨识数量
     * @param companyId
     * @param userId
     * @return
     */
    int selectRiskIdentityCount(@Param("companyId") long companyId, @Param("userId") long userId);
 
    /**
     * 查询风险未评价数量
     * @param userId
     * @return
     */
    int selectRiskEvaluationCount(long userId);
 
    /**
     * 查询风险审核数量
     * @param userId
     * @return
     */
    int selectRiskReviewCount(long userId);
 
    /**
     * 查询排查计划为执行数量
     * @param userId
     * @return
     */
    int selectTroubleCheckCount(long userId);
 
    /**
     * 查询上报隐患数量
     * @param userId
     * @return
     */
    int selectTroubleReportCount(long userId);
 
    /**
     * 查询隐患待核查数量
     * @param userId
     * @return
     */
    int selectTroubleExamineCount(long userId);
 
    /**
     * 查询隐患待整改数量
     * @param userId
     * @return
     */
    int selectTroubleRectifyCount(long userId);
 
    /**
     * 查询未验收隐患数量
     * @param userId
     * @return
     */
    int selectTroubleAcceptCount(long userId);
 
    /**
     * 查询公示需要的隐患信息
     * @param companyId
     * @return
     */
    List<Danger> selectPublicityDanger(long companyId);
    /**
     * 查询公示需要的风险信息
     * @param companyId
     * @return
     */
    List<RiskDomain> selectPublicityRisk(long companyId);
}