潘志宝
2024-11-08 e7812194c9cb2c6e38af05524b55f687905fb5f6
iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/enums/DataPointFreqEnum.java
文件名从 iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/enums/DataPointFreq.java 修改
@@ -8,21 +8,21 @@
 */
@Getter
@AllArgsConstructor
public enum DataPointFreq {
    NET10("NET10", 10),
    NET30("NET30", 30),
    NET60("NET60",60);
public enum DataPointFreqEnum {
    NET_10S("10s", 10),
    NET_30S("30s", 30),
    NET_1MIN("1min",60);
    private String code;
    private Integer value;
    public static DataPointFreq getEumByCode(String code) {
    public static DataPointFreqEnum getEumByCode(String code) {
        if (code == null) {
            return null;
        }
        for (DataPointFreq statusEnum : DataPointFreq.values()) {
        for (DataPointFreqEnum statusEnum : DataPointFreqEnum.values()) {
            if (statusEnum.getCode().equals(code)) {
                return statusEnum;
            }