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
| package com.fzzy.igds.constant;
|
| /**
| * @Description 工单状态
| * @Author CZT
| * @Date 2025/11/25 15:29
| */
| public enum AuditStatus {
| Status_10("10", "待审批"),
| Status_20("20", "通过"),
| Status_30("30", "拒绝"),
| Status_40("40", "退回");
|
| private String code;
| private String msg;
|
| AuditStatus(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(AuditStatus.Status_10.getCode().equals(code)) return AuditStatus.Status_10.getMsg();
| if(AuditStatus.Status_20.getCode().equals(code)) return AuditStatus.Status_20.getMsg();
| if(AuditStatus.Status_30.getCode().equals(code)) return AuditStatus.Status_30.getMsg();
| if(AuditStatus.Status_40.getCode().equals(code)) return AuditStatus.Status_40.getMsg();
|
| return code;
| }
|
| }
|
|