| | |
| | | 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) { } |