package com.nova.sankuai.domain.enums.huizhixin;
|
|
import io.swagger.annotations.ApiModel;
|
|
@ApiModel(value = "客户贷前信息-职称")
|
public enum LoanPositonTitleEnum {
|
|
PositonTitle_1("PN001", "初级"),
|
PositonTitle_2("PN002", "中级"),
|
PositonTitle_3("PN003", "高级"),
|
PositonTitle_4("PN100", "无"),
|
;
|
|
|
private String code;
|
private String value;
|
|
LoanPositonTitleEnum(String code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(String code) {
|
if (code != null) {
|
for (LoanPositonTitleEnum m : LoanPositonTitleEnum.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;
|
}
|
|
}
|