ws183
2025-04-28 b306d1106b915bb13fd7a02217ae9c65de2fd03d
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
package com.ld.igds.screen.data;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ld.igds.models.Depot;
import lombok.Data;
import org.apache.commons.lang3.time.DateFormatUtils;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * 仓库列表及最新的粮情信息,用于大屏封装
 * @author chen
 */
@Data
public class DepotGrainData extends Depot implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @PropertyDef(label = "最低温粮温", description = "单位℃,粮情最低温")
    private Double tempMin;
 
    @PropertyDef(label = "最高粮温", description = "单位℃,粮情最高温")
    private Double tempMax;
 
    @PropertyDef(label = "平均粮温", description = "单位℃,粮情平均温度")
    private Double tempAve;
 
    @PropertyDef(label = "仓内湿度")
    private Double humidityIn;
 
    @PropertyDef(label = "仓内温度")
    private Double tempIn;
 
    @PropertyDef(label = "仓外湿度")
    private Double humidityOut;
 
    @PropertyDef(label = "仓外温度")
    private Double tempOut;
 
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @PropertyDef(label = "检测时间")
    private Date receiveDate;
 
    @PropertyDef(label = "更新时间", description = "更新时间:yyyy-MM-dd HH:mm")
    private String receiveTime;
 
    public String getReceiveTime() {
        return DateFormatUtils.format(this.receiveDate, "yyyy-MM-dd HH:mm");
    }
}