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
| package com.fzzy.igds.constant;
|
| /**
| *
| */
| public enum AuditStatus {
| STATUS_10("10", "待审批"),
| STATUS_20("20", "通过"),
|
| STATUS_21("21", "库区审批"),
| STATUS_22("22", "监管审批"),
| STATUS_23("22", "银行审批"),
|
| 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_21.getCode().equals(code)) return AuditStatus.STATUS_21.getMsg();
| if(AuditStatus.STATUS_22.getCode().equals(code)) return AuditStatus.STATUS_22.getMsg();
| if(AuditStatus.STATUS_23.getCode().equals(code)) return AuditStatus.STATUS_23.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;
| }
|
| }
|
|