package com.ruoyi.basic.constant;
|
|
import java.util.Arrays;
|
import java.util.List;
|
|
/**
|
* EIP 线缆类型常量
|
*/
|
public final class EipCableTypeConstants {
|
|
private EipCableTypeConstants() {
|
}
|
|
public static final String HIGH_VOLTAGE = "highVoltage";
|
public static final String MEDIUM_VOLTAGE = "mediumVoltage";
|
public static final String LOW_VOLTAGE = "lowVoltage";
|
public static final String MAIN_NETWORK = "mainNetwork";
|
public static final String DISTRIBUTION = "distribution";
|
public static final String OPTICAL_FIBER = "opticalFiber";
|
public static final String OPGW = "opgw";
|
public static final String ADSS = "adss";
|
|
public static List<String> allTypes() {
|
return Arrays.asList(
|
HIGH_VOLTAGE,
|
MEDIUM_VOLTAGE,
|
LOW_VOLTAGE,
|
MAIN_NETWORK,
|
DISTRIBUTION,
|
OPTICAL_FIBER,
|
OPGW,
|
ADSS
|
);
|
}
|
|
public static String getTypeName(String type) {
|
switch (type) {
|
case HIGH_VOLTAGE:
|
return "高压电力电缆";
|
case MEDIUM_VOLTAGE:
|
return "中压电力电缆";
|
case LOW_VOLTAGE:
|
return "低压线缆";
|
case MAIN_NETWORK:
|
return "主网导地线";
|
case DISTRIBUTION:
|
return "配网导地线";
|
case OPTICAL_FIBER:
|
return "光缆";
|
case OPGW:
|
return "OPGW光缆";
|
case ADSS:
|
return "ADSS光缆";
|
default:
|
return type;
|
}
|
}
|
}
|