huminmin
2026-06-05 4f45f29e6b53f4c01b414409c5000ff4e212b3d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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;
        }
    }
}