package com.ruoyi.system.domain; import java.io.Serializable; import jakarta.validation.constraints.NotBlank; /** 测试电池号与采集器演示通道的测量映射。 */ public class TTestCollectorChannel implements Serializable { private static final long serialVersionUID = 1L; private Long mappingId; private Long testId; private Long batteryRelationId; /** 最终数据库列名对应的测试电池主键。 */ private Long testBatteryId; private Long collectorId; @NotBlank(message = "采集器测量项编码不能为空") private String measurementCode; @NotBlank(message = "采集器测量项名称不能为空") private String measurementName; @NotBlank(message = "采集器通道不能为空") private String channelCode; public Long getMappingId() { return mappingId; } public void setMappingId(Long value) { mappingId = 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 getCollectorId() { return collectorId; } public void setCollectorId(Long value) { collectorId = value; } public String getMeasurementCode() { return measurementCode; } public void setMeasurementCode(String value) { measurementCode = value; } public String getMeasurementName() { return measurementName; } public void setMeasurementName(String value) { measurementName = value; } public String getChannelCode() { return channelCode; } public void setChannelCode(String value) { channelCode = value; } }