暂存功能

This commit is contained in:
caozehui
2026-07-15 11:01:49 +08:00
parent 16ace94f8d
commit 95005d2462
31 changed files with 1135 additions and 429 deletions

View File

@@ -1,58 +0,0 @@
package com.njcn.gather.system.pojo.enums;
import lombok.Getter;
/**
* @author cdf
* @version 1.0.0
*/
@Getter
public enum DicDataEnum {
FREQ("FREQ","频率"),
V("V","电压"),
I("I","电流"),
IMBV("IMBV","三相电压不平衡度"),
IMBA("IMBA","三相电流不平衡度"),
HV("HV","谐波电压"),
HI("HI","谐波电流"),
HP("HP","谐波有功功率"),
HSV("HSV","间谐波电压"),
HSI("HSI","间谐波电流"),
VOLTAGE("VOLTAGE","暂态"),
F("F","闪变"),
P("P","功率")
;
private final String code;
private final String message;
DicDataEnum(String code, String message) {
this.code = code;
this.message = message;
}
public static DicDataEnum getEnumByCode(String code) {
for (DicDataEnum e : DicDataEnum.values()) {
if (e.getCode().equals(code)) {
return e;
}
}
return null;
}
public static String getMessageByCode(String code) {
DicDataEnum e = getEnumByCode(code);
if (e!= null) {
return e.getMessage();
}
return "";
}
}