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
| package com.fzzy.igds.constant;
|
| /**
| * @Description 质量巡检枚举
| * @Author CZT
| * @Date 2025/11/25 15:32
| */
| public enum CheckType {
|
| TYPE_01("01", "入仓验收"),
| TYPE_02("02", "出仓检验"),
| TYPE_03("03", "3月末普检"),
| TYPE_04("04", "9月末普检"),
| TYPE_05("05", "入库初检"),
| TYPE_06("06", "月度检查"),
| TYPE_07("07", "3月末库内普查"),
| TYPE_08("08", "9月末库内普查");
|
| private String code;
| private String msg;
|
| CheckType(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 (CheckType.TYPE_01.getCode().equals(code)) return CheckType.TYPE_01.getMsg();
|
| if (CheckType.TYPE_02.getCode().equals(code)) return CheckType.TYPE_02.getMsg();
|
| if (CheckType.TYPE_03.getCode().equals(code)) return CheckType.TYPE_03.getMsg();
|
| if (CheckType.TYPE_04.getCode().equals(code)) return CheckType.TYPE_04.getMsg();
|
| if (CheckType.TYPE_05.getCode().equals(code)) return CheckType.TYPE_05.getMsg();
| if (CheckType.TYPE_06.getCode().equals(code)) return CheckType.TYPE_06.getMsg();
| if (CheckType.TYPE_07.getCode().equals(code)) return CheckType.TYPE_07.getMsg();
| if (CheckType.TYPE_08.getCode().equals(code)) return CheckType.TYPE_08.getMsg();
|
| return code;
| }
|
| }
|
|