package com.ld.igds.models;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
|
import javax.persistence.*;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import lombok.Data;
|
|
/**
|
* 粮情数据-主表
|
* <p>
|
* 更新记录:
|
* 1,删除行数据的表记录,调整为数据直接文本保存主表中
|
* 2,保留点位坐标信息,便于以后点位走势图查看
|
*
|
* @author Andy
|
*/
|
@Entity
|
@Table(name = "D_GRAIN")
|
@Data
|
public class Grain implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@Column(name = "BATCH_ID_", length = 30)
|
@PropertyDef(label = "批次编号")
|
private String batchId;
|
|
@Id
|
@Column(name = "COMPANY_ID_", length = 10)
|
@PropertyDef(label = "组织编码", description = "")
|
private String companyId;
|
|
@Id
|
@Column(name = "DEPOT_ID_", length = 50)
|
@PropertyDef(label = "所属仓库", description = "仓库编号")
|
private String depotId;
|
|
|
@Column(name = "TEMP_MIN_")
|
@PropertyDef(label = "最低温粮温", description = "单位℃,粮情最低温")
|
private Double tempMin = 0.0;
|
|
@Column(name = "TEMP_MAX_")
|
@PropertyDef(label = "最高粮温", description = "单位℃,粮情最高温")
|
private Double tempMax = 0.0;
|
|
@Column(name = "TEMP_AVE_")
|
@PropertyDef(label = "平均粮温", description = "单位℃,粮情平均温度")
|
private Double tempAve = 0.0;
|
|
@Column(name = "HUMIDITY_IN_")
|
@PropertyDef(label = "仓内湿度")
|
private Double humidityIn;
|
|
@Column(name = "TEMP_IN_")
|
@PropertyDef(label = "仓内温度")
|
private Double tempIn;
|
|
@Column(name = "HUMIDITY_OUT_")
|
@PropertyDef(label = "仓外湿度")
|
private Double humidityOut;
|
|
@Column(name = "TEMP_OUT_")
|
@PropertyDef(label = "仓外温度")
|
private Double tempOut;
|
|
@Column(name = "CABLE_", length = 20)
|
@PropertyDef(label = "层行列", description = "用逗号隔开的配置信息,层-行-列")
|
private String cable;
|
|
@PropertyDef(label = "筒仓层配置", description = "用-隔开的配置信息")
|
@Column(name = "CABLE_CIR_", length = 20)
|
private String cableCir;
|
|
@PropertyDef(label = "油面高度", description = "用-隔开的两个值,油面高度-建筑高度")
|
@Column(name = "OIL_HEIGHT_", length = 20)
|
private String oilHeight;
|
|
@Column(name = "WEATHER_", length = 20)
|
@PropertyDef(label = "天气", description = "直接填写中文信息,晴,阴雨天")
|
private String weather = "";
|
|
@Column(name = "RECEIVE_DATE_")
|
@PropertyDef(label = "接收时间")
|
private Date receiveDate;
|
|
@Column(name = "CHECK_USER_", length = 30)
|
@PropertyDef(label = "检测人")
|
private String checkUser;
|
|
@Column(name = "REMARK_", length = 500)
|
@PropertyDef(label = "备注", description = "备注")
|
private String remark;
|
|
@Column(name = "POINTS_", length = 2000)
|
@PropertyDef(label = "采集点信息", description = "用逗号隔开的温度信息信息")
|
private String points;
|
|
@Transient
|
@PropertyDef(label = "所属分库", description = "分库编码,非数据库字段")
|
private String deptId;
|
}
|