package com.ruoyi.cwgl.enums;
|
|
import lombok.Getter;
|
|
public enum FeeTypeEnums {
|
FREIGHT("运费", "MainlandFee"),
|
CUSTOM("报关费", "CustomFee"),
|
MULTI_LOAD("多点装货", "MultiLoadFee"),
|
OVER_WIDTH("超宽费", "OverWidthFee"),
|
OVERNIGHT("压夜超时", "OvernightFee"),
|
MISC("其他", "MiscFee");
|
|
private final String label;
|
@Getter
|
private final String fieldSuffix;
|
|
FeeTypeEnums(String label, String fieldSuffix) {
|
this.label = label;
|
this.fieldSuffix = fieldSuffix;
|
}
|
|
public static FeeTypeEnums from(String feeItem) {
|
for (FeeTypeEnums t : values()) {
|
if (t.label.equals(feeItem)) return t;
|
}
|
return MISC;
|
}
|
}
|