jiazx0107@163.com
2023-11-04 43ce77a85d8297a53dc25430fff10ead57296167
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
package com.ld.igds.constant;
 
/**
 * 仓库状态枚举
 */
public enum DepotStatus {
 
    STATUS_1("1", "空仓"),
    STATUS_2("2", "入库中"),
    STATUS_3("3", "封仓"),
    STATUS_4("4", "出库中"),
    STATUS_31("31", "封仓-气调中"),
    STATUS_32("32", "封仓-熏蒸中"),
    STATUS_33("33", "封仓-通风中"),
    STATUS_34("34", "封仓-温控中"),
    STATUS_9("9", "其他");
 
    private String code;
    private String msg;
 
    DepotStatus(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public String getCode() {
        return code;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public static String getMsg(String code) {
        if (null == code) return null;
 
        if (DepotStatus.STATUS_1.getCode().equals(code)) return DepotStatus.STATUS_1.getMsg();
        if (DepotStatus.STATUS_2.getCode().equals(code)) return DepotStatus.STATUS_2.getMsg();
        if (DepotStatus.STATUS_3.getCode().equals(code)) return DepotStatus.STATUS_3.getMsg();
        if (DepotStatus.STATUS_4.getCode().equals(code)) return DepotStatus.STATUS_4.getMsg();
        if (DepotStatus.STATUS_31.getCode().equals(code)) return DepotStatus.STATUS_31.getMsg();
        if (DepotStatus.STATUS_32.getCode().equals(code)) return DepotStatus.STATUS_32.getMsg();
        if (DepotStatus.STATUS_33.getCode().equals(code)) return DepotStatus.STATUS_33.getMsg();
        if (DepotStatus.STATUS_34.getCode().equals(code)) return DepotStatus.STATUS_34.getMsg();
 
        return DepotStatus.STATUS_9.getMsg();
    }
 
 
    public static String getGBCode(String code) {
        if (null == code) DepotStatus.STATUS_9.getCode();
 
        if (DepotStatus.STATUS_31.equals(code)) return DepotStatus.STATUS_3.getCode();
        if (DepotStatus.STATUS_32.equals(code)) return DepotStatus.STATUS_3.getCode();
        if (DepotStatus.STATUS_33.equals(code)) return DepotStatus.STATUS_3.getCode();
        if (DepotStatus.STATUS_34.equals(code)) return DepotStatus.STATUS_3.getCode();
 
        return code;
    }
 
 
}