yanghb
2024-12-24 fe6e43d5e1144156d0ca4e9d6080c9821c25d97c
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
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;
    }
}