package com.ld.igds.models; import com.bstek.dorado.annotation.PropertyDef; import com.ld.igds.constant.Constant; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; /** * 配置测气和测虫的MODBUS-TCP配置信息 */ @Data @Entity @Table(name = "D_GAS_MODBUS") public class GasModbus implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "ID_", length = 40) @PropertyDef(label = "ID") private String id; @Column(name = "DEPOT_ID_", length = 50) @PropertyDef(label = "所属仓库") private String depotId; @Column(name = "PASS_CODE_") @PropertyDef(label = "通道") private int passcode; @Column(name = "CO2_", length = 10) @PropertyDef(label = "二氧化碳") private String co2 = Constant.YN_N; @Column(name = "CO2_FUN", length = 4) @PropertyDef(label = "功能号") private String co2Fun = "99"; @Column(name = "O2_", length = 10) @PropertyDef(label = "氧气") private String o2 = Constant.YN_N; @Column(name = "O2_FUN", length = 4) @PropertyDef(label = "功能号") private String o2Fun = "99"; @Column(name = "PH3_", length = 10) @PropertyDef(label = "磷化氢") private String ph3= Constant.YN_N; @Column(name = "PH3_FUN", length = 4) @PropertyDef(label = "功能号") private String ph3Fun = "99"; }