yeg
2026-09-29 b78295e8da96c3e5e76befeef9582ce5273dbb74
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package com.battery.business.domain;
 
import java.io.Serializable;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
 
/** 测试电池号与主要检测柜通道的绑定,对应表 t_test_channel_binding。 */
public class TTestChannelBinding implements Serializable
{
    private static final long serialVersionUID = 1L;
 
    /** 通道绑定主键。 */
    private Long bindingId;
    /** 所属测试主键。 */
    private Long testId;
    /** 旧页面入参别名,仅用于兼容;数据库列以 testBatteryId 为准。 */
    private Long batteryRelationId;
    /** 最终数据库列名对应的测试电池主键。 */
    private Long testBatteryId;
    /** 绑定的检测柜通道主键,同一次开始接收不允许重复绑定同一通道。 */
    @NotNull(message = "检测柜通道不能为空")
    private Long channelId;
    /** 操作员填写的预期条码,用于人工核对,不参与数据归属判定。 */
    @Size(max = 100, message = "预期条码长度不能超过100个字符")
    private String expectedBarcode;
    /**
     * 通道认领状态,数据库约束只允许四个取值:PENDING 待认领、CLAIMED 已认领、
     * RELEASED 已释放、CONFLICT 冲突;数据归属只按绑定关系判定,不依赖该值。
     */
    private String claimStatus;
    /** 通道所属检测柜主键,由通道查询带出。 */
    private Long cabinetId;
    /** 检测柜编码,仅供列表展示。 */
    private String cabinetCode;
    /** 检测柜名称,仅供列表展示。 */
    private String cabinetName;
    /** 设备适配器实例编码,与下方厂商字段共同构成通道身份。 */
    private String adapterCode;
    /** 厂商设备类型。 */
    private Integer devtype;
    /** 厂商设备号。 */
    private Integer devid;
    /** 厂商单元号。 */
    private Integer subdevid;
    /** 厂商通道号。 */
    private Integer chlid;
    /** 通道展示编号,仅供界面展示,不能代替通道身份。 */
    private String displayNo;
    /** 适配器时区标识,用于解释设备时间;缺省按 Asia/Hong_Kong 处理。 */
    private String adapterTimezoneId;
 
    public Long getBindingId() { return bindingId; }
    public void setBindingId(Long value) { bindingId = value; }
    public Long getTestId() { return testId; }
    public void setTestId(Long value) { testId = value; }
    public Long getBatteryRelationId() { return batteryRelationId; }
    public void setBatteryRelationId(Long value) { batteryRelationId = value; }
    public Long getTestBatteryId() { return testBatteryId != null ? testBatteryId : batteryRelationId; }
    public void setTestBatteryId(Long value) { testBatteryId = value; batteryRelationId = value; }
    public Long getChannelId() { return channelId; }
    public void setChannelId(Long value) { channelId = value; }
    public String getExpectedBarcode() { return expectedBarcode; }
    public void setExpectedBarcode(String value) { expectedBarcode = value; }
    public String getClaimStatus() { return claimStatus; }
    public void setClaimStatus(String value) { claimStatus = value; }
    public Long getCabinetId() { return cabinetId; }
    public void setCabinetId(Long value) { cabinetId = value; }
    public String getCabinetCode() { return cabinetCode; }
    public void setCabinetCode(String value) { cabinetCode = value; }
    public String getCabinetName() { return cabinetName; }
    public void setCabinetName(String value) { cabinetName = value; }
    public String getAdapterCode() { return adapterCode; }
    public void setAdapterCode(String value) { adapterCode = value; }
    public Integer getDevtype() { return devtype; }
    public void setDevtype(Integer value) { devtype = value; }
    public Integer getDevid() { return devid; }
    public void setDevid(Integer value) { devid = value; }
    public Integer getSubdevid() { return subdevid; }
    public void setSubdevid(Integer value) { subdevid = value; }
    public Integer getChlid() { return chlid; }
    public void setChlid(Integer value) { chlid = value; }
    public String getDisplayNo() { return displayNo; }
    public void setDisplayNo(String value) { displayNo = value; }
    public String getAdapterTimezoneId() { return adapterTimezoneId; }
    public void setAdapterTimezoneId(String value) { adapterTimezoneId = value; }
}