文件名从 iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/enums/DataPointFreq.java 修改 |
| | |
| | | */ |
| | | @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; |
| | | } |