package com.bonus.core.customer.constants;


import com.bonus.core.common.converter.LeExcelFieldConvertor;
import com.bonus.core.common.converter.LeExcelFieldEnum;
import com.bonus.core.order.common.constants.OrderTypeEnum;

public enum FeaturesBuildStatusEnum implements LeExcelFieldEnum<OrderTypeEnum> {
   UN_CREATE(1, "未生成"),
   CREATE_SUCC(2, "生成成功"),
   CREATE_FAIL(3, "生成失败");

   private final Integer key;
   private final String desc;

   private FeaturesBuildStatusEnum(Integer key, String desc) {
      this.key = key;
      this.desc = desc;
   }

   public static String getDesc(Integer key) {
      FeaturesBuildStatusEnum[] var1 = values();
      int var2 = var1.length;

      for(int var3 = 0; var3 < var2; ++var3) {
         FeaturesBuildStatusEnum temp = var1[var3];
         if (temp.getKey().equals(key)) {
            return temp.getDesc();
         }
      }

      return "";
   }

   @Override
   public Integer getKey() {
      return this.key;
   }

   @Override
   public String getDesc() {
      return this.desc;
   }

   // $FF: synthetic method
   private static FeaturesBuildStatusEnum[] $values() {
      return new FeaturesBuildStatusEnum[]{UN_CREATE, CREATE_SUCC, CREATE_FAIL};
   }

   public static class ExcelConvertor extends LeExcelFieldConvertor<FeaturesBuildStatusEnum> {
      public ExcelConvertor() {
         super(FeaturesBuildStatusEnum.class);
      }
   }
}
