package com.battery.business.domain;
|
|
import java.io.Serializable;
|
import jakarta.validation.constraints.NotBlank;
|
|
/** 测试电池号与采集器演示通道的测量映射,对应表 t_test_collector_channel。 */
|
public class TTestCollectorChannel implements Serializable
|
{
|
private static final long serialVersionUID = 1L;
|
|
/** 测量映射主键。 */
|
private Long mappingId;
|
/** 所属测试主键。 */
|
private Long testId;
|
/** 旧页面入参别名,仅用于兼容;数据库列以 testBatteryId 为准。 */
|
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; }
|
}
|