yeg
2026-09-29 b78295e8da96c3e5e76befeef9582ce5273dbb74
battery-business/src/main/java/com/battery/business/test/dto/TestBatteryBindingDto.java
@@ -16,7 +16,9 @@
            CabinetChannelDto cabinetChannel, List<CollectorChannelDto> collectorChannels) {
        this(testBatteryId, null, groupId, batteryNo, collectorId, cabinetChannel, null, collectorChannels);
    }
    /** 测试电池主键;兼容只传旧页面入参别名 relationId 的调用方。 */
    public Long resolvedTestBatteryId() { return testBatteryId != null ? testBatteryId : relationId; }
    /** 检测柜通道绑定;兼容只传旧页面入参别名 binding 的调用方。 */
    public CabinetChannelDto resolvedCabinetChannel() { return cabinetChannel != null ? cabinetChannel : binding; }
    public record CabinetChannelDto(Long channelId, String expectedBarcode) { }
    public record CollectorChannelDto(String measurementCode, String measurementName, String channelCode) { }