jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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
package com.ld.igds.phone.dto;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ld.igds.constant.*;
import lombok.Data;
 
import java.util.Date;
 
@Data
public class DtoDepot {
 
    private String companyId;
    private String depotId;
    private String depotName;
    private String depotType;
    private String depotTypeName;
    private String depotStatus;
    private String depotStatusName;
    private Double storageMax;
    private Double storageReal;
    private String foodType;
    private String foodTypeName;
    private String foodVariety;
    private String foodVarietyName;
    private String foodLevel;
    private String foodLevelName;
    private String foodLocation;
    private String perWet;
    private String perImpurity;
    private String storeKeeper;
    private String storeKeeperName;
    private String storeDate;
    private String foodYear;
    private String remark;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date receiveDate;
    private String isPest;
    private Double perCo2 = 0.0;
    private Double perO2 = 0.0;
    private Double perPh3 = 0.0;
    private Double perN2 = 0.0;
//    private String gasRemark;
 
    public String getDepotTypeName() {
        if (null != this.depotType) {
            return DepotType.getMsg(this.depotType);
        }
        return null;
    }
 
    public String getDepotStatusName() {
        if (null != this.depotStatus) {
            return DepotStatus.getMsg(this.depotStatus);
        }
        return null;
    }
 
    public String getFoodTypeName() {
        if (null != this.foodType) {
            return FoodType.getMsg(this.foodType);
        }
        return null;
    }
 
    public String getFoodVarietyName() {
        if (null != this.foodVariety) {
            return FoodVariety.getMsg(this.foodVariety);
        }
        return null;
    }
 
    public String getFoodLevelName() {
        if (null != this.foodLevel) {
            return FoodLevel.getMsg(this.foodLevel);
        }
        return null;
    }
}