yanghb
2024-12-17 1287337fd0b0c156ec79712f9a600ebeffefe3a6
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package com.zzg.common.enums;
 
/**
 * @date 2024/08/29
 */
public enum CompensationCategoryEnum {
    // 货币补偿类型
    MONEY_COMPENSATION(101, "货币补偿", "平方米/元"),
    PROPERTY_SWAP(102, "产权置换", "平方米/元"),
    MONEY_COMPENSATION_1(1, "货币补偿", "平方米/元"),
    PROPERTY_SWAP_2(2, "产权置换", "平方米/元"),
 
    // 搬迁类补偿
    PHONE_RELOCATION(201, "电话移机", "元/部"),
    CABLE_TV_RELOCATION(202, "有线电视迁装", "元/户"),
    BROADBAND_RELOCATION(203, "宽带迁装", "元/户"),
    AIR_CONDITIONER_RELOCATION(204, "空调移机", "元/户"),
    ONE_HOUSE_ONE_METER(205, "一户一表", "元/户"),
    GAS_INITIAL_INSTALLATION(206, "天然气初装", "元/户"),
 
    // 补助费类型
    TEMPORARY_HOUSING_ALLOWANCE(301, "住宅临时安置补助费", "元/平方米·月"),
    NON_RESIDENTIAL_ECONOMIC_LOSS_ALLOWANCE(302, "非住宅停产、停业经济损失补助费", "元/户"),
    MOVING_ALLOWANCE(303, "搬家补助费", "元/户"),
 
    // 补贴类型
    HOUSE_PURCHASE_SUBSIDY(401, "购房补贴", "元/户"),
    PROPERTY_MANAGEMENT_SUBSIDY(402, "物管费补贴", "元/平方米·月"),
 
    // 奖励类型
    EARLY_RELOCATION_BONUS(501, "提前搬迁奖励", "元/户");
 
    private final int code;
    private final String description;
    private final String  unit;
 
    CompensationCategoryEnum(int code, String description, String unit) {
        this.code = code;
        this.description = description;
        this.unit = unit;
    }
    public static String getDescription(Integer key) {
        for (CompensationCategoryEnum v : CompensationCategoryEnum.values()) {
            if (key.equals(v.getCode())) {
                return v.getDescription();
            }
        }
        return "";
    }
 
    public static int getCode(String description) {
        for (CompensationCategoryEnum category : CompensationCategoryEnum.values()) {
            if (category.getDescription().equalsIgnoreCase(description)) {
                return category.getCode();
            }
        }
        return 0;
    }
    public int getCode() {
        return code;
    }
 
    public String getDescription() {
        return description;
    }
 
    @Override
    public String toString() {
        return this.code + " - " + this.description;
    }
 
    public String getUnit() {
        return unit;
    }
}