czt
2025-05-29 753abfcaf090f79a4226693c2829a2d47b422058
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package com.fzzy.igds.dzhwk.data;
 
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<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;
}