YYC
2023-07-21 d54186539b00fab8f4b639752aaf9b758c914ffd
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
package com.ld.igds.models;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.constant.DeviceIotType;
import lombok.Data;
 
import javax.persistence.*;
import java.io.Serializable;
 
/**
 * 物联网拓展设备
 */
@Data
@Entity
@Table(name = "D_DEVICE_IOT")
public class DeviceIot implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "ID")
    private String id;
 
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @Column(name = "DEPOT_ID_", length = 50)
    @PropertyDef(label = "所属仓库")
    private String depotId;
 
    @Column(name = "SER_ID_", length = 10)
    @PropertyDef(label = "所属分机")
    private String serId;
 
    @Column(name = "PASS_CODE_")
    @PropertyDef(label = "通道/地址", description = "设备通道配置")
    private int passCode;
 
    @Column(name = "NAME_", length = 50)
    @PropertyDef(label = "分机名称")
    private String name;
 
    @Column(name = "TYPE_", length = 10)
    @PropertyDef(label = "设备类型")
    private String type = DeviceIotType.TYPE_01.getCode();
 
    @Column(name = "REMARK_", length = 200)
    @PropertyDef(label = "备注", description = "备注信息")
    private String remark;
 
    @Transient
    @PropertyDef(label = "X坐标", description = "通风页面中的位置信息-PC使用")
    private Double posX;
 
    @Transient
    @PropertyDef(label = "Y坐标", description = "通风页面中的位置信息-PC使用")
    private Double posY;
}