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;
|
}
|
}
|