yeg
2026-08-29 210b7a8a01bf91f56261efe4d87f5a7f6484a028
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.ruoyi.device.model;
 
import java.util.Objects;
 
/**
 * 表示检测柜通道上一项 BTS 测试当前可下载的历史数据范围。
 */
public record HistoryAvailability(
        ChannelIdentity channel,
        String btsTestId,
        long availableRecordCount,
        boolean uploadComplete)
{
    public HistoryAvailability
    {
        channel = Objects.requireNonNull(channel, "channel");
        btsTestId = Objects.requireNonNull(btsTestId, "btsTestId").trim();
        if (btsTestId.isEmpty()) throw new IllegalArgumentException("btsTestId must not be blank");
        if (availableRecordCount < 0) throw new IllegalArgumentException("availableRecordCount must be non-negative");
    }
}