puzhibing
2026-08-17 df76ce9a356dfee029a63de4aae58c34dc9b7329
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
package com.ruoyi.system.service.impl;
 
import java.util.Arrays;
import java.util.List;
import org.springframework.stereotype.Service;
import com.ruoyi.system.domain.vo.DiscoveredCabinetVo;
import com.ruoyi.system.service.IDetectionCabinetDiscoveryService;
 
/**
 * 检测柜设备发现服务默认实现。
 *
 * 当前返回测试设备;硬件接入后在此处替换为真实设备发现逻辑。
 */
@Service
public class DetectionCabinetDiscoveryServiceImpl implements IDetectionCabinetDiscoveryService
{
    @Override
    public List<DiscoveredCabinetVo> selectDiscoveredCabinetList()
    {
        return Arrays.asList(
                new DiscoveredCabinetVo("CAB-A01", "192.168.1.101", "AA:BB:CC:DD:EE:01", "在线", "空闲", "—"),
                new DiscoveredCabinetVo("CAB-A02", "192.168.1.102", "AA:BB:CC:DD:EE:02", "在线", "测试中", "电池组 B-2025-0147"),
                new DiscoveredCabinetVo("CAB-A03", "192.168.1.103", "AA:BB:CC:DD:EE:03", "离线", "空闲", "—"),
                new DiscoveredCabinetVo("CAB-B01", "192.168.2.101", "AA:BB:CC:DD:EF:01", "在线", "空闲", "—"),
                new DiscoveredCabinetVo("CAB-B02", "192.168.2.102", "AA:BB:CC:DD:EF:02", "在线", "测试中", "电池组 B-2025-0153"),
                new DiscoveredCabinetVo("CAB-B03", "192.168.2.103", "AA:BB:CC:DD:EF:03", "离线", "空闲", "—"));
    }
}