package com.fzzy.igds.grain.dto; import com.bstek.dorado.annotation.PropertyDef; import com.fasterxml.jackson.annotation.JsonFormat; import com.fzzy.igds.dzhwk.domain.Depot; import com.fzzy.igds.dzhwk.domain.MQuality; import com.ruoyi.common.annotation.Excel; 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; @Excel(name = "批次编号", sort = 2) @PropertyDef(label = "批次编号") private String batchId; @PropertyDef(label = "组织编码", description = "") private String companyId; @Excel(name = "所属仓库", sort = 1) @PropertyDef(label = "所属仓库", description = "仓库编号") private String depotId; @Excel(name = "最低温粮温", sort = 7) @PropertyDef(label = "最低温粮温", description = "单位℃,粮情最低温") private Double tempMin = 0.0; @Excel(name = "最高粮温", sort = 8) @PropertyDef(label = "最高粮温", description = "单位℃,粮情最高温") private Double tempMax = 0.0; @Excel(name = "平均粮温", sort = 9) @PropertyDef(label = "平均粮温", description = "单位℃,粮情平均温度") private Double tempAve = 0.0; @Excel(name = "仓内湿", sort = 4) @PropertyDef(label = "仓内湿度") private Double humidityIn; @Excel(name = "仓外温", sort = 3) @PropertyDef(label = "仓内温度") private Double tempIn; @Excel(name = "仓外湿", sort = 5) @PropertyDef(label = "仓外湿度") private Double humidityOut; @Excel(name = "仓外温", sort = 6) @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 listPoints; @PropertyDef(label = "各层粮温", description = "关系字段") private List listLays; @PropertyDef(label = "各行温度", description = "关系字段") private List 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; }