首页 > 代码库 > java类固定值代替基表写法

java类固定值代替基表写法

package cn.com.mcd.enumeration;

public enum AuditStatusEnum {

NOTAUDIT("0", "未审核"),
PASSAUDIT("1", "审核通过"),
FAILUDIT("2", "审核不通过");

private String value;

private String name;


private AuditStatusEnum(String value, String name) {
this.value = http://www.mamicode.com/value;
this.name = name;
}

public String getValue() {
return value;
}

public String getName() {
return name;
}
}

java类固定值代替基表写法