package com.iailab.module.model.mdk.common.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * 模型参数类型 * * @author PanZhibao * @Description * @createTime 2024年11月08日 */ @Getter @AllArgsConstructor public enum ModelParamType { DATAPOINT("DATAPOINT", "测点值"), NORMALITEM("NormalItem", "预测值(NormalItem)"), MERGEITEM("MergeItem", "MergeItem"), IND("IND", "指标值"), PLAN("PLAN", "计划值"); private String code; private String desc; public static ModelParamType getEumByCode(String code) { if (code == null) { return null; } for (ModelParamType statusEnum : ModelParamType.values()) { if (statusEnum.getCode().equals(code)) { return statusEnum; } } return null; } }