From 48c2e5ffb3f9ad3509006e50f3142ea4d0e7f619 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期三, 16 十月 2024 09:32:16 +0800 Subject: [PATCH] 修改拼接sql逻辑以及返回逻辑 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/ItemTypeEnum.java | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/ItemTypeEnum.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/ItemTypeEnum.java index 5622549..34f7723 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/ItemTypeEnum.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/ItemTypeEnum.java @@ -4,6 +4,8 @@ import lombok.Getter; /** + * 指标类型 + * * @author PanZhibao * @Description * @createTime 2023年05月03日 19:10:00 @@ -12,11 +14,25 @@ @AllArgsConstructor public enum ItemTypeEnum { - ATOM("ATOM"), + ATOM("ATOM", "原子指标"), - DER("DER"), + DER("DER", "派生指标"), - CAL("CAL"); + CAL("CAL", "复合指标"); private String code; + private String desc; + + public static ItemTypeEnum getEumByCode(String code) { + if (code == null) { + return null; + } + + for (ItemTypeEnum statusEnum : ItemTypeEnum.values()) { + if (statusEnum.getCode().equals(code)) { + return statusEnum; + } + } + return null; + } } -- Gitblit v1.9.3