DangerLevelManage.java
5.2 KB
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
package com.skua.modules.safe.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.skua.core.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.Column;
/**
* 风险分级管控清单
*/
@Data
@TableName("danger_level_manage")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="danger_level_manage对象", description="风险分级管控清单")
public class DangerLevelManage{
/**id*/
@TableId(type = IdType.UUID)
@ApiModelProperty(value = "id")
private String id;
/**厂区*/
@Excel(name = "厂区", width = 15,dictTable = "sys_depart", dicCode="id", dicText = "depart_name")
@ApiModelProperty(value = "厂区")
@Dict(dictTable = "sys_depart", dicCode="id", dicText = "depart_name")
private String departId;
/**风险点类型*/
@Excel(name = "风险点类型", width = 15 ,dicCode = "dangerType")
@ApiModelProperty(value = "风险点类型")
@Dict(dicCode = "dangerType")
private String dangerType;
/**风险点名称*/
@Excel(name = "风险点名称", width = 15)
@ApiModelProperty(value = "风险点名称")
private String dangerName;
/**危险源内容*/
@Excel(name = "危险源内容", width = 15)
@ApiModelProperty(value = "危险源内容")
private String dangerContent;
/**安全态(标准情况)*/
@Excel(name = "安全态(标准情况)", width = 15)
@ApiModelProperty(value = "安全态(标准情况)")
private String dangerStandard;
/**风险等级*/
@Excel(name = "风险等级", width = 15 ,dicCode = "dangerLevel")
@ApiModelProperty(value = "风险等级")
@Dict(dicCode = "dangerLevel")
private String dangerLevel;
/**主要后果*/
@Excel(name = "主要后果", width = 15)
@ApiModelProperty(value = "主要后果")
private String dangerResult;
/**管控措施*/
@Excel(name = "管控措施", width = 15)
@ApiModelProperty(value = "管控措施")
private String dangerWay;
/**管控层级*/
@Excel(name = "管控层级", width = 15,dicCode = "dangerRank")
@ApiModelProperty(value = "管控层级")
@Dict(dicCode = "dangerRank")
private String dangerRank;
/**责任部门*/
@Excel(name = "责任部门", width = 15)
@ApiModelProperty(value = "责任部门")
private String dangerDept;
/**责任人*/
@Excel(name = "责任人", width = 15)
@ApiModelProperty(value = "责任人")
private String dangerUser;
/**安全四色图*/
//@Excel(name = "安全四色图", width = 15)
@ApiModelProperty(value = "安全四色图")
private String dangerFour;
@Excel(name = "风险点位置", width = 15,dicCode = "id",dicText = "struct_name",dictTable = "sys_struct_dict")
@ApiModelProperty(value = "风险点位置")
@Dict(dicCode = "id",dicText = "struct_name",dictTable = "sys_struct_dict")
private String dangerPlace;
@Excel(name = "关联设备", width = 15,dicCode = "id",dicText = "equipment_name",dictTable = "equipment_info")
@ApiModelProperty(value = "关联设备")
@Dict(dicCode = "id",dicText = "equipment_name",dictTable = "equipment_info")
private String equipInfoId;
@Excel(name = "是否共享", width = 15)
@ApiModelProperty(value = "是否共享")
private String share;
//@Excel(name = "二维码", width = 15)
@ApiModelProperty(value = "二维码")
private String qrCode;
/**创建人Id*/
@ApiModelProperty(value = "创建人Id")
private String createBy;
/**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**修改人Id*/
@ApiModelProperty(value = "修改人Id")
private String updateBy;
/**修改时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "修改时间")
private Date updateTime;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private String createDept;
/**所属公司*/
@ApiModelProperty(value = "所属公司")
private String createCmpy;
/**删除标识,1有效,0删除*/
@ApiModelProperty(value = "删除标识,1有效,0删除")
private Integer delFlag;
@TableField(exist=false)
@ApiModelProperty(value = "厂区名称")
private String departName;
@TableField(exist=false)
@ApiModelProperty(value = "关联设备名称")
private String equipmentName;
@TableField(exist=false)
@ApiModelProperty(value = "风险等级名称")
private String dangerLevelName;
@TableField(exist=false)
@ApiModelProperty(value = "风险类型名称")
private String dangerTypeName;
@TableField(exist=false)
@ApiModelProperty(value = "风险位置名称")
private String dangerPlaceName;
}