package com.ld.igds.models;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
|
import lombok.Data;
|
|
/**
|
* 气体在获取的时候并不是直接获取到的气体信息,每次通过多次获取后得到一个结果, 这里保存的就是多路气体信息
|
*
|
* @author Andy
|
*
|
*/
|
@Data
|
@Entity
|
@Table(name = "D_GAS_INFO")
|
public class GasInfo implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@Column(name = "ID_", length = 50)
|
@PropertyDef(label = "ID", description = "工具类生成:companyId + depotId + batchId")
|
private String id;
|
|
@Id
|
@Column(name = "PASS_CODE_")
|
@PropertyDef(label = "通道路数", description = "第几路,不同的协议采集次数不一样")
|
private int passCode = -1;
|
|
@Column(name = "PER_CO2_")
|
@PropertyDef(label = "二氧化碳浓度", description = "二氧化碳浓度(PPM)")
|
private Double perCo2 = 0.0;
|
|
@Column(name = "PER_O2_")
|
@PropertyDef(label = "氧气浓度", description = "氧气浓度(%)")
|
private Double perO2 = 0.0;
|
|
@Column(name = "PER_PH3_")
|
@PropertyDef(label = "磷化氢浓度", description = "磷化氢浓度(PPM)")
|
private Double perPh3 = 0.0;
|
|
@Column(name = "PER_N2_")
|
@PropertyDef(label = "氮气浓度")
|
private Double perN2 = 0.0;
|
|
@Column(name = "RECEIVE_DATE_")
|
@PropertyDef(label = "检测时间")
|
private Date receiveDate;
|
|
@Column(name = "REMARK_", length = 200)
|
@PropertyDef(label = "备注信息")
|
private String remark;
|
|
@Transient
|
@PropertyDef(label = "", description = "Co2检测错误信息")
|
private String errorCo2;
|
|
@Transient
|
@PropertyDef(label = "", description = "O2检测错误信息")
|
private String errorO2;
|
|
@Transient
|
@PropertyDef(label = "", description = "PH3检测错误信息")
|
private String errorPh3;
|
}
|