文件名从 iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/enums/Freq.java 修改 |
| | |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 频率类型 |
| | | * 测点频率类型 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum Freq { |
| | | public enum DataPointFreq { |
| | | NET10("NET10", 10), |
| | | NET30("NET30", 30), |
| | | NET60("NET60",60); |
| | |
| | | |
| | | private Integer value; |
| | | |
| | | public static Freq getEumByCode(String code) { |
| | | public static DataPointFreq getEumByCode(String code) { |
| | | if (code == null) { |
| | | return null; |
| | | } |
| | | |
| | | for (Freq statusEnum : Freq.values()) { |
| | | for (DataPointFreq statusEnum : DataPointFreq.values()) { |
| | | if (statusEnum.getCode().equals(code)) { |
| | | return statusEnum; |
| | | } |