package com.yeejoin.amos.boot.module.hygf.api.Enum;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description:
 * @author: tw
 * @createDate: 2023/12/13
 */
@Getter
@AllArgsConstructor
public enum ArrivalStateeEnum {

    待收货("待收货", "待收货"),

    已收货("已收货", "已收货"),

    已作废("已作废", "已作废"),


    待勘察("待勘察", "待勘察"),
    勘察中("勘察中", "勘察中"),
    勘察完成 ("勘察完成", "勘察完成"),
    备货中("备货中", "备货中"),
    备货完成("备货完成", "备货完成"),
    施工中("施工中", "施工中"),
    施工完成 ("施工完成", "施工完成"),
    并网中("并网中", "并网中"),
    并网完成("并网完成", "并网完成"),
    线上验收("线上验收", "线上验收"),
    线下验收("线下验收", "线下验收"),
    验收完成("验收完成", "验收完成");









    /**
     * 名称，描述
     */
    private String name;
    /**
     * 编码
     */
    private String code;

    public static ContractStatusEnum getNodeByCode(String code) {
        ContractStatusEnum dealerReviewEnum = null;
        for(ContractStatusEnum type: ContractStatusEnum.values()) {
            if (type.getCode().equals(code)) {
                dealerReviewEnum = type;
                break;
            }
        }
        return dealerReviewEnum;
    }

}
