¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ld.igds.models; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.ld.igds.constant.BizType; |
| | | import com.ld.igds.constant.Constant; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤é
ç½®çModbus-TCPåæ°é
ç½® |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEVICE_MODBUS") |
| | | public class DeviceModbus implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "ID") |
| | | private String id; |
| | | |
| | | @Column(name = "DEVICE_CODE_", length = 40) |
| | | @PropertyDef(label = "设å¤ç¼ç ") |
| | | private String deviceCode; |
| | | |
| | | @Column(name = "BIZ_TYEP_", length = 10) |
| | | @PropertyDef(label = "ä¸å¡ç±»å") |
| | | private String bizType = BizType.AREATION.getCode(); |
| | | |
| | | @Column(name = "OPEN_", length = 10) |
| | | @PropertyDef(label = "å¼å°å", description = "å¼å°åãè½è读åå°å") |
| | | private String open = Constant.YN_N; |
| | | |
| | | |
| | | @Column(name = "OPEN_FUN", length = 4) |
| | | @PropertyDef(label = "åè½å·") |
| | | private String openFun = "99"; |
| | | |
| | | @Column(name = "CLOSE_", length = 10) |
| | | @PropertyDef(label = "å
³å°å", description = "å
³å°åãç©ºè°æ¸©åº¦è®¾ç½®å°å") |
| | | private String close = Constant.YN_N; |
| | | |
| | | @Column(name = "CLOSE_FUN", length = 4) |
| | | @PropertyDef(label = "åè½å·") |
| | | private String closeFun = "99"; |
| | | |
| | | @Column(name = "STOP_", length = 10) |
| | | @PropertyDef(label = "åå°å") |
| | | private String stop = Constant.YN_N; |
| | | |
| | | @Column(name = "STOP_FUN", length = 4) |
| | | @PropertyDef(label = "åè½å·") |
| | | private String stopFun = "99"; |
| | | |
| | | @Column(name = "OPEN_END_", length = 10) |
| | | @PropertyDef(label = "å¼å°ä½å°å", description = "å¼å°ä½å°åãè¿è¡ç¶æå°å(飿ºå空è°)") |
| | | private String openEnd = Constant.YN_N; |
| | | |
| | | @Column(name = "OPEN_END_FUN", length = 4) |
| | | @PropertyDef(label = "åè½å·") |
| | | private String openEndFun = "99"; |
| | | |
| | | @Column(name = "CLOSE_END_", length = 10) |
| | | @PropertyDef(label = "å
³å°ä½å°å") |
| | | private String closeEnd = Constant.YN_N; |
| | | |
| | | @Column(name = "CLOSE_END_FUN", length = 4) |
| | | @PropertyDef(label = "åè½å·") |
| | | private String closeEndFun = "99"; |
| | | |
| | | @Column(name = "OPEN_ERROR_", length = 10) |
| | | @PropertyDef(label = "弿
éå°å") |
| | | private String openError = Constant.YN_N; |
| | | |
| | | @Column(name = "OPEN_ERROR_FUN", length = 4) |
| | | @PropertyDef(label = "åè½å·") |
| | | private String openErrorFun = "99"; |
| | | |
| | | @Column(name = "CLOSE_ERROR_", length = 10) |
| | | @PropertyDef(label = "å
³æ
éå°å") |
| | | private String closeError = Constant.YN_N; |
| | | |
| | | @Column(name = "CLOSE_ERROR_FUN", length = 4) |
| | | @PropertyDef(label = "åè½å·") |
| | | private String closeErrorFun = "99"; |
| | | |
| | | //è½´æµé£æºåè½´æµçªå¯è½ä¸å¨ä¸ä¸ªåæºä¸ï¼IPä¸å |
| | | @Column(name = "SER_ID_", length = 10) |
| | | @PropertyDef(label = "æå±åæº") |
| | | private String serId; |
| | | |
| | | |
| | | @Transient |
| | | private List<GasModbus> listGas; |
| | | |
| | | } |