package com.yeejoin.equipmanage.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 导出类型常量
 ***/
@Getter
@AllArgsConstructor
public  enum ExcelEnums {

        /**
         * ("XFZB","消防装备与机场服务关联"),
         */
        XFZB ("消防装备", "消防装备", "com.yeejoin.equipmanage.dto.EquipmentDetailExcelTemplateDto","XFZB"),
        /**
         * ("XFZBSINGLE","消防装备单体");//("XFZBSINGLE","消防装备单体")
         */
        XFZBSINGLE ("消防装备", "消防装备", "com.yeejoin.equipmanage.dto.EquipmentDetailExcelSingleTemplateDto","XFZBSINGLE"),
        JKXX ("监控信息", "监控信息", "com.yeejoin.equipmanage.common.entity.vo.VideoDownloadVO","JKXX"),;

        private String fileName;
        private String sheetName;
        private String classUrl;
        private String type;

        public static ExcelEnums getByKey(String type) {

        for (ExcelEnums status : ExcelEnums.values())
        {
                if (status.getType().equals(type))
                {
                     return status;
                }
        }
        return null;
        }

}
