jinpengyong
2023-08-11 010f4ba252db180fc7fea4d7cb1b84a0bca7479f
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
package com.moral.api.entity;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
 
import java.io.Serializable;
import java.util.Date;
 
import lombok.Data;
import lombok.EqualsAndHashCode;
 
/**
 * <p>
 * 设备表
 * </p>
 *
 * @author moral
 * @since 2021-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Device extends Model<Device> {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    /**
     * 设备名称
     */
    private String name;
 
    /**
     * mac号
     */
    private String mac;
 
    /**
     * 设备地址
     */
    private String address;
 
    /**
     * 经度
     */
    private Double longitude;
 
    /**
     * 纬度
     */
    private Double latitude;
 
    /**
     * 设备状态,与字典表关联
     */
    private String state;
 
    /**
     * 维护人id,多个逗号隔开,来源于manage_account
     */
    private String operateIds;
 
    /**
     * 站点id
     */
    private Integer monitorPointId;
 
    /**
     * 组织id
     */
    private Integer organizationId;
 
    /**
     * 国控站/省控站/县控站标示,与gov_monitor_point中guid对应
     */
    private String guid;
 
    /**
     * 设备型号id
     */
    private Integer deviceVersionId;
 
    /**
     * 行业,与字典表关联
     */
    private String profession;
 
    /**
     * 设备工艺,1:烟道;2:厂界;3:车间,基本数据在字典表
     */
    private String tech;
 
    /**
     * 设备检测器,与字典表关联
     */
    private String detector;
 
    /**
     * 采购商,与字典表关联
     */
    private String purchaser;
 
    /**
     * 创建(生产)时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
 
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
 
    /**
     * 安装时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date installTime;
 
    /**
     * 逻辑删除,0:不删除;1:删除
     */
    private String isDelete;
 
    /**
     * 设备工艺扩展字段
     */
    private String extend;
 
    /**
     * 乡镇,街道code
     */
    private Integer townCode;
 
    /*
    * 设备型号
    * */
    @TableField(exist = false)
    private Version version;
    /*
     *序号
     * */
    private Integer devNum;
}