package com.zzg.common.enums;
|
|
public enum HouseOwnerTyeEnum {
|
PERSONAL(1, "私人"),
|
COMPANY(2, "公司");
|
|
private final Integer value;
|
|
private final String text;
|
public static String getValueByKey(Integer key) {
|
for (HouseOwnerTyeEnum v : HouseOwnerTyeEnum.values()) {
|
if (v.getValue().equals(key)) {
|
return v.getText();
|
}
|
}
|
return "";
|
}
|
HouseOwnerTyeEnum(Integer value, String text) {
|
this.value = value;
|
this.text = text;
|
}
|
|
public Integer getValue() {
|
return value;
|
}
|
|
public String getText() {
|
return text;
|
}
|
}
|