ServiceStatusEnum.java 981 Bytes
package com.dituhui.pea.enums;

public enum ServiceStatusEnum {
    // 服务状态:INIT-初始化/PENDING待服务/CONTACTED已排期/STARTED-已开始/FINISHED已完成/UNFINISHED-已上门未完成
    INIT("INIT", "待服务"),
    PENDING("PENDING", "待服务"),
    CONTACTED("CONTACTED", "已排期"),
    STARTED("STARTED", "已开始"),
    CANCELED("CANCELED", "已取消"),
    FINISHED("FINISHED", "已完成"),
    //已超时
    UNFINISHED("UNFINISHED", "已上门未完成"),
    DELAY("DELAY", "已延误");

    private final String code;

    private final String description;

    ServiceStatusEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public String getCode() {
        return code;
    }

    public static String getEnumName(ServiceStatusEnum serviceStatus) {
        return serviceStatus.toString();
    }
}