czt
2025-05-29 753abfcaf090f79a4226693c2829a2d47b422058
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
package com.fzzy.igds.dzhwk.constant;
 
/**
 * 工单状态
 * @author chen
 *
 */
public enum AuditStatus {
    Status_10("10", "待审核"),
    Status_11("11", "待仓储审核"),
    Status_12("12", "待质检审核"),
    Status_13("13", "待统计审核"),
    Status_14("14", "待会计审核"),
    Status_15("15", "待领导审核"),
    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_11.getCode().equals(code)) return AuditStatus.Status_11.getMsg();
        if(AuditStatus.Status_12.getCode().equals(code)) return AuditStatus.Status_12.getMsg();
        if(AuditStatus.Status_13.getCode().equals(code)) return AuditStatus.Status_13.getMsg();
        if(AuditStatus.Status_14.getCode().equals(code)) return AuditStatus.Status_14.getMsg();
        if(AuditStatus.Status_15.getCode().equals(code)) return AuditStatus.Status_15.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 "";
    }
 
}