package com.iailab.module.pms.coalquality.common.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * @author PanZhibao * @Description * @createTime 2023年09月15日 13:44:00 */ @Getter @AllArgsConstructor public enum FcfaType { FULL("full", "全级"), THREE("three", "三级"); private String code; private String desc; public static FcfaType getEumByCode(String code) { if (code == null) { return null; } for (FcfaType statusEnum : FcfaType.values()) { if (statusEnum.getCode().equals(code)) { return statusEnum; } } return null; } }