Air
2024-11-04 a1f06d31b7b4cac569c34bdfbb68de77f2858ffe
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.nova.sankuai.domain.enums.huizhixin;
 
import io.swagger.annotations.ApiModel;
 
@ApiModel(value = "客户贷前信息-月收入")
public enum LoanMonthlySalaryEnum {
 
    MonthlySalary_1("PA006", "2000 以下"),
    MonthlySalary_2("PA007", "2000-5000"),
    MonthlySalary_3("PA008", "5000-8000"),
    MonthlySalary_4("PA009", "8000-12000"),
    MonthlySalary_5("PA010", "12000-15000"),
    MonthlySalary_6("PA011", "15000-20000"),
    MonthlySalary_7("PA012", "20000 以上"),
    ;
 
 
    private String code;
    private String value;
 
    LoanMonthlySalaryEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }
 
    public static String value(String code) {
        if (code != null) {
            for (LoanMonthlySalaryEnum m : LoanMonthlySalaryEnum.values()) {
                if (m.getCode().equals(code)) {
                    return m.getValue();
                }
            }
        }
        return null;
    }
 
 
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    public String getValue() {
        return value;
    }
 
    public void setValue(String value) {
        this.value = value;
    }
 
}