OrderStatusEnum.java 699 Bytes
package com.dituhui.pea.enums;

public enum OrderStatusEnum {
    CREATE("创建订单", "CREATE"),
    NORMAL("正常", "NORMAL"),
    CANCELED("已取消", "CANCELED"),
    RESCHEDULED("已改约", "RESCHEDULED"),
    ASSIGN("工单指派", "ASSIGN");

    private final String description;
    private final String code;

    OrderStatusEnum(String description, String code) {
        this.description = description;
        this.code = code;

    }

    public String getDescription() {
        return description;
    }

    public String getCode() {
        return code;
    }

    public static String getEnumName(OrderStatusEnum orderStatus) {
        return orderStatus.toString();
    }
}