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; }