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
| package com.fzzy.igds.constant;
|
| /**
| * @Description 仓库状态枚举
| * @Author CZT
| * @Date 2025/11/25 14:25
| */
| public enum DepotStatus {
|
| STATUS_1("1", "空仓"),
| STATUS_2("2", "入库中"),
| STATUS_3("3", "封仓"),
| STATUS_4("4", "出库中"),
| 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();
|
| return DepotStatus.STATUS_9.getMsg();
| }
|
| }
|
|