country_card-管理发布-获取适用市场下拉选接口。
分类-处理回显责任人名称。
This commit is contained in:
+52
@@ -0,0 +1,52 @@
|
||||
package com.jero.modules.system.enums;
|
||||
|
||||
/**
|
||||
* 数据字典code枚举类
|
||||
*/
|
||||
public enum DicCodeEnum {
|
||||
REGION("适用地区","0","region"),
|
||||
;
|
||||
|
||||
String name;
|
||||
String value;
|
||||
String code;
|
||||
|
||||
private DicCodeEnum(String name, String value, String code) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public static String getTextByValue(String value) {
|
||||
DicCodeEnum[] values = values();
|
||||
for (DicCodeEnum dicCodeEnum : values) {
|
||||
if (dicCodeEnum.value.equals(value)) {
|
||||
return dicCodeEnum.name;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user