双重预防项目-国泰新华二开定制版
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
package com.ruoyi.project.tr.HiddenDangerCheckJob.domain;
 
import com.ruoyi.common.constant.ScheduleConstants;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.monitor.job.util.CronUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
 
import java.util.Date;
import java.util.List;
 
/**
 * 隐患排查定时任务调度对象 tr_hidden_danger_check_job
 *
 *
 * @date 2020-05-18
 */
public class HiddenDangerCheckJob extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    /**
     * 任务ID
     */
    @Excel(name = "任务序号", cellType = ColumnType.NUMERIC)
    private Long jobId;
 
    /**
     * 任务名称
     */
    @Excel(name = "任务名称")
    private String jobName;
 
    /**
     * 任务组名
     */
    @Excel(name = "任务组名")
    private String jobGroup;
 
    /**
     * 调用目标字符串
     */
    @Excel(name = "调用目标字符串")
    private String invokeTarget;
 
    /**
     * cron执行表达式
     */
    @Excel(name = "执行表达式 ")
    private String cronExpression;
 
    /**
     * cron计划策略
     */
    @Excel(name = "计划策略 ", readConverterExp = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行")
    private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT;
 
    /**
     * 是否并发执行(0允许 1禁止)
     */
    @Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止")
    private String concurrent;
 
    /**
     * 任务状态(0正常 1暂停)
     */
    @Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停")
    private String status;
 
 
    /**
     * 隐患排查类型id
     */
    @Excel(name = "隐患排查类型id")
    private Long troubleshootTypeId;
 
    /**
     * 隐患排查类型名称
     */
    @Excel(name = "隐患排查类型名称")
    private String troubleshootTypeName;
 
    /**
     * 隐患排查周期数
     */
    @Excel(name = "隐患排查周期数")
    private Long troubleshootTypeCycleNum;
 
    /**
     * 隐患排查周期类型(1小时,2日,3周,4月,5年)
     */
    @Excel(name = "隐患排查周期类型(1小时,2日,3周,4月,5年)")
    private Long troubleshootTypeCycleType;
 
    /**
     * 所属公司
     */
    @Excel(name = "所属公司")
    private Long companyId;
 
    /**
     * 风险单元类型(1设备设施清单 2作业活动清单 3工艺节点清单)
     */
    @Excel(name = "风险单元类型", readConverterExp = "1=设备设施清单,2=作业活动清单,3=工艺节点清单")
    private String riskType;
 
    /**
     * 风险单元ID
     */
    @Excel(name = "风险单元ID")
    private String riskId;
 
    /**
     * 风险单元名称
     */
    @Excel(name = "风险单元名称")
    private String riskName;
 
    /**
     * 风险单元区域ID
     */
    private String riskPlaceId;
 
    /**
     * 风险单元区域名称
     */
    private String riskPlaceName;
 
    /**
     * 隐患责任部门ID
     */
    @Excel(name = "隐患责任部门ID")
    private String riskDeptId;
 
    /**
     * 隐患责任部门名称
     */
    @Excel(name = "隐患责任部门名称")
    private String riskDeptName;
 
    /**
     * 执行人ID
     */
    @Excel(name = "执行人ID")
    private Long executeUserId;
 
    /**
     * 执行人名称
     */
    @Excel(name = "执行人名称")
    private String executeUserName;
 
 
    /**
     * 多个执行人ID
     */
    @Excel(name = "多个执行人ID")
    private String executeUserIdString;
 
 
    /**
     * 多个执行人名称
     */
    @Excel(name = "多个执行人名称")
    private String executeUserNameString;
 
    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;
 
    private List<Date> startTimeList;
 
    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createUserId;
 
    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createUserName;
 
 
    //排查类型(1基础清单排查 2选择风险单元清单排查)
    private String checkType;
 
 
    public String getExecuteUserNameString() {
        return executeUserNameString;
    }
 
    public void setExecuteUserNameString(String executeUserNameString) {
        this.executeUserNameString = executeUserNameString;
    }
 
    public String getExecuteUserIdString() {
        return executeUserIdString;
    }
 
    public void setExecuteUserIdString(String executeUserIdString) {
        this.executeUserIdString = executeUserIdString;
    }
 
    public List<Date> getStartTimeList() {
        return startTimeList;
    }
 
    public void setStartTimeList(List<Date> startTimeList) {
        this.startTimeList = startTimeList;
    }
 
    public Long getJobId() {
        return jobId;
    }
 
    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }
 
    public String getCheckType() {
        return checkType;
    }
 
    public void setCheckType(String checkType) {
        this.checkType = checkType;
    }
 
 
    public Long getCreateUserId() {
        return createUserId;
    }
 
    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }
 
    public String getCreateUserName() {
        return createUserName;
    }
 
    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
 
 
    public String getRiskPlaceId() {
        return riskPlaceId;
    }
 
    public void setRiskPlaceId(String riskPlaceId) {
        this.riskPlaceId = riskPlaceId;
    }
 
    public String getRiskPlaceName() {
        return riskPlaceName;
    }
 
    public void setRiskPlaceName(String riskPlaceName) {
        this.riskPlaceName = riskPlaceName;
    }
 
    public String getRiskDeptName() {
        return riskDeptName;
    }
 
    public void setRiskDeptName(String riskDeptName) {
        this.riskDeptName = riskDeptName;
    }
 
    public String getRiskType() {
        return riskType;
    }
 
    public void setRiskType(String riskType) {
        this.riskType = riskType;
    }
 
    public String getRiskId() {
        return riskId;
    }
 
    public void setRiskId(String riskId) {
        this.riskId = riskId;
    }
 
    public String getRiskDeptId() {
        return riskDeptId;
    }
 
    public void setRiskDeptId(String riskDeptId) {
        this.riskDeptId = riskDeptId;
    }
 
    public String getRiskName() {
        return riskName;
    }
 
    public void setRiskName(String riskName) {
        this.riskName = riskName;
    }
 
    public Long getExecuteUserId() {
        return executeUserId;
    }
 
    public void setExecuteUserId(Long executeUserId) {
        this.executeUserId = executeUserId;
    }
 
    public String getExecuteUserName() {
        return executeUserName;
    }
 
    public void setExecuteUserName(String executeUserName) {
        this.executeUserName = executeUserName;
    }
 
    public Date getStartTime() {
        return startTime;
    }
 
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
 
    public String getJobName() {
        return jobName;
    }
 
    public void setJobName(String jobName) {
        this.jobName = jobName;
    }
 
    public String getJobGroup() {
        return jobGroup;
    }
 
    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }
 
    public String getInvokeTarget() {
        return invokeTarget;
    }
 
    public void setInvokeTarget(String invokeTarget) {
        this.invokeTarget = invokeTarget;
    }
 
    public String getCronExpression() {
        return cronExpression;
    }
 
    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }
 
    public Date getNextValidTime() {
        if (StringUtils.isNotEmpty(cronExpression)) {
            return CronUtils.getNextExecution(cronExpression);
        }
        return null;
    }
 
    public String getMisfirePolicy() {
        return misfirePolicy;
    }
 
    public void setMisfirePolicy(String misfirePolicy) {
        this.misfirePolicy = misfirePolicy;
    }
 
    public String getConcurrent() {
        return concurrent;
    }
 
    public void setConcurrent(String concurrent) {
        this.concurrent = concurrent;
    }
 
    public String getStatus() {
        return status;
    }
 
    public void setStatus(String status) {
        this.status = status;
    }
 
    public Long getTroubleshootTypeId() {
        return troubleshootTypeId;
    }
 
    public void setTroubleshootTypeId(Long troubleshootTypeId) {
        this.troubleshootTypeId = troubleshootTypeId;
    }
 
    public String getTroubleshootTypeName() {
        return troubleshootTypeName;
    }
 
    public void setTroubleshootTypeName(String troubleshootTypeName) {
        this.troubleshootTypeName = troubleshootTypeName;
    }
 
    public Long getTroubleshootTypeCycleNum() {
        return troubleshootTypeCycleNum;
    }
 
    public void setTroubleshootTypeCycleNum(Long troubleshootTypeCycleNum) {
        this.troubleshootTypeCycleNum = troubleshootTypeCycleNum;
    }
 
    public Long getTroubleshootTypeCycleType() {
        return troubleshootTypeCycleType;
    }
 
    public void setTroubleshootTypeCycleType(Long troubleshootTypeCycleType) {
        this.troubleshootTypeCycleType = troubleshootTypeCycleType;
    }
 
    public Long getCompanyId() {
        return companyId;
    }
 
    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }
 
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("jobId", getJobId())
                .append("jobName", getJobName())
                .append("jobGroup", getJobGroup())
                .append("cronExpression", getCronExpression())
                .append("nextValidTime", getNextValidTime())
                .append("misfirePolicy", getMisfirePolicy())
                .append("concurrent", getConcurrent())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}