sgj
2026-03-02 06f4d2f5cc46ffa9402dcb4e6bec08fbab2bcfa6
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
package com.fzzy.igds.app.v1.dto;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fzzy.igds.constant.DepotType;
import lombok.Data;
 
import java.util.Date;
import java.util.List;
 
/**
 * @Author: YYC
 * @Description:
 * @DateTime: 2026-2-5 14:36
 **/
@Data
public class PGrainDto {
 
    private String depotId;
    private String depotName;
    private String depotType;
    private String depotTypeName;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date receiveDate;
    private Double tempIn;
    private Double humidityIn;
    private Double tempOut;
    private Double humidityOut;
    private Double tempMax = 0.0;
    private Double tempMin = 0.0;
    private Double tempAve = 0.0;
    private String cable;
    private String cableCir;
 
    private List<PPointDto> points;
 
    private List<PDetailDto> details;
 
    public String getDepotTypeName() {
        if (null != this.depotType) {
            return DepotType.getMsg(this.depotType);
        }
        return null;
    }
}