package com.ld.igds.grain.dto;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ld.igds.models.Depot;
|
import com.ld.igds.models.MQuality;
|
import lombok.Data;
|
|
import javax.persistence.Transient;
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* 用于封装的粮情信息,每次获取粮情数据,封装为当前对象
|
*
|
* @author jiazx
|
*/
|
@Data
|
public class GrainData implements Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
|
@PropertyDef(label = "批次编号")
|
private String batchId;
|
|
@PropertyDef(label = "组织编码", description = "")
|
private String companyId;
|
|
@PropertyDef(label = "所属仓库", description = "仓库编号")
|
private String depotId;
|
|
@PropertyDef(label = "最低温粮温", description = "单位℃,粮情最低温")
|
private Double tempMin = 0.0;
|
|
@PropertyDef(label = "最高粮温", description = "单位℃,粮情最高温")
|
private Double tempMax = 0.0;
|
|
@PropertyDef(label = "平均粮温", description = "单位℃,粮情平均温度")
|
private Double tempAve = 0.0;
|
|
@PropertyDef(label = "仓内湿度")
|
private Double humidityIn;
|
|
@PropertyDef(label = "仓内温度")
|
private Double tempIn;
|
|
@PropertyDef(label = "仓内湿度")
|
private Double humidityOut;
|
|
@PropertyDef(label = "仓外温度")
|
private Double tempOut;
|
|
@PropertyDef(label = "层行列", description = "用-隔开的配置信息")
|
private String cable;
|
|
@PropertyDef(label = "筒仓层配置", description = "用-隔开的配置信息")
|
private String cableCir;
|
|
@PropertyDef(label = "油面高度",description = "用-隔开的两个值,油面高度-建筑高度")
|
private String oilHeight;
|
|
@PropertyDef(label = "天气", description = "直接填写中文信息,晴,阴雨天")
|
private String weather = "#";
|
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
|
@PropertyDef(label = "接收时间")
|
private Date receiveDate;
|
|
@PropertyDef(label = "检测人")
|
private String checkUser;
|
|
@PropertyDef(label = "备注")
|
private String remark;
|
|
@PropertyDef(label = "采集点信息", description = "用逗号隔开的温度信息信息")
|
private String points;
|
|
@PropertyDef(label = "各个采集点的信息", description = "关系字段")
|
private List<GrainPoint> listPoints;
|
|
@PropertyDef(label = "各层粮温", description = "关系字段")
|
private List<GrainLay> listLays;
|
|
@PropertyDef(label = "各行温度", description = "关系字段")
|
private List<GrainRow> listRows;
|
|
@PropertyDef(label = "仓房信息", description = "关系字段")
|
private Depot depotData;
|
|
@PropertyDef(label = "化验信息", description = "关系字段")
|
private MQuality mquality;
|
|
@PropertyDef(label = "系统时间", description = "关系字段")
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
|
private Date sysDate = new Date();
|
|
@PropertyDef(label = "建筑高度")
|
private String depotHeight;
|
|
@PropertyDef(label = "检测储量", description = "单位KG")
|
private Double storage;
|
|
@Transient
|
@PropertyDef(label = "当前仓iot设备的温湿度数据")
|
private List<GrainIotData> grainIotData;
|
}
|