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
| package com.ld.igds.constant;
|
| /**
| * 仓库状态枚举
| */
| public enum DepotStatus {
|
| STATUS_01("01", "空仓"),
| STATUS_02("02", "满仓"),
| STATUS_03("03", "入库中"),
| STATUS_04("04", "出库中"),
| STATUS_05("05", "气调中"),
| STATUS_06("06", "熏蒸中"),
| STATUS_07("07", "通风中"),
| STATUS_09("09", "温控中"),
| STATUS_08("08", "维修中");
|
| 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_01.getCode().equals(code)) return DepotStatus.STATUS_01.getMsg();
| if(DepotStatus.STATUS_02.getCode().equals(code)) return DepotStatus.STATUS_02.getMsg();
| if(DepotStatus.STATUS_03.getCode().equals(code)) return DepotStatus.STATUS_03.getMsg();
| if(DepotStatus.STATUS_04.getCode().equals(code)) return DepotStatus.STATUS_04.getMsg();
| if(DepotStatus.STATUS_05.getCode().equals(code)) return DepotStatus.STATUS_05.getMsg();
| if(DepotStatus.STATUS_06.getCode().equals(code)) return DepotStatus.STATUS_06.getMsg();
| if(DepotStatus.STATUS_07.getCode().equals(code)) return DepotStatus.STATUS_07.getMsg();
| if(DepotStatus.STATUS_08.getCode().equals(code)) return DepotStatus.STATUS_08.getMsg();
| return code;
| }
|
| }
|
|