liding
2026-06-29 e492288919d92b8667c5781675c7581b37208405
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
package com.ruoyi.device.pojo;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.time.LocalDateTime;
 
/**
 * 隐患上报记录实体类
 * 用于记录巡检过程中发现的隐患,跟踪整改状态
 */
@Data
@Schema
@TableName("hazard_report")
public class HazardReport {
 
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;
 
    @Schema(description = "上报类型:线路巡检/安全设施巡检")
    @Excel(name = "上报类型")
    private String reportType;
 
    @Schema(description = "关联设施ID")
    private Long facilityId;
 
    @Schema(description = "隐患描述")
    @Excel(name = "隐患描述")
    private String hazardDescription;
 
    @Schema(description = "严重程度:轻微/一般/严重")
    @Excel(name = "严重程度")
    private String severity;
 
    @Schema(description = "上报人ID")
    private String reporterId;
 
    @Schema(description = "上报人姓名")
    @Excel(name = "上报人")
    private String reporter;
 
    @Schema(description = "上报时间")
    @Excel(name = "上报时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reportTime;
 
    @Schema(description = "整改状态:待整改/整改中/已完成")
    @Excel(name = "整改状态")
    private String rectificationStatus;
 
    @Schema(description = "整改责任人ID")
    private String rectificationPersonId;
 
    @Schema(description = "整改责任人姓名")
    @Excel(name = "整改责任人")
    private String rectificationPerson;
 
    @Schema(description = "整改完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime rectificationTime;
 
    @Schema(description = "整改描述")
    @Excel(name = "整改描述")
    private String rectificationDescription;
 
    @Schema(description = "验收人ID")
    private String acceptancePersonId;
 
    @Schema(description = "验收人姓名")
    @Excel(name = "验收人")
    private String acceptancePerson;
 
    @Schema(description = "验收时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime acceptanceTime;
 
    @Schema(description = "验收结果")
    @Excel(name = "验收结果")
    private String acceptanceResult;
 
    @Schema(description = "备注")
    @Excel(name = "备注")
    private String remarks;
 
    @Schema(description = "软删除标志:0=未删除,1=已删除")
    private Integer deleted;
 
    @Schema(description = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
 
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
 
    @Schema(description = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateUser;
 
    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
 
    @Schema(description = "租户ID")
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
 
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
}