public enum BieEnum {
HH("HH", "即日退"),
LL("LL", "三日退"),
MM("MM", "无");
BieEnum(String type) {
   this.type = type;
}
BieEnum(String type, String description) {

      this.type = type;

this.description = description;
    }
private String type;
private String description;
public String getType() {
return type;
}
public String getDescription() {
return description;
}
}
枚举类需要,名词,名词中的key-value,有参的构造器,参数会自动和枚举中的key-value匹配,枚举在开发中可以替代final
static 避免大量使用final static。
OrderStatusEnum订单状态分类,一个名字里面4个东东,好处是一个值可以对应多个值,比如人的姓名,里面可以跟数学,成绩,分数,上次考试分数