package com.ruoyi.system.domain; import java.io.Serializable; import java.util.List; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; /** 测试与电池号关系对象 t_test_battery。 */ public class TTestBattery implements Serializable { private static final long serialVersionUID = 1L; private Long relationId; private Long testId; @NotNull(message = "电池组不能为空") private Long groupId; @NotBlank(message = "电池号不能为空") private String batteryNo; @NotNull(message = "检测柜不能为空") private Long cabinetId; @NotNull(message = "测试通道不能为空") @Min(value = 0, message = "测试通道不能小于0") private Integer testChannelNo; @NotNull(message = "采集器不能为空") private Long collectorId; @NotNull(message = "温度通道不能为空") @Min(value = 0, message = "温度通道不能小于0") private Integer temperatureChannelNo; @NotNull(message = "正电位通道不能为空") @Min(value = 0, message = "正电位通道不能小于0") private Integer positiveChannelNo; @NotNull(message = "负电位通道不能为空") @Min(value = 0, message = "负电位通道不能小于0") private Integer negativeChannelNo; private String delFlag; @NotEmpty(message = "扩展属性不能为空") private List fields; public Long getRelationId() { return relationId; } public void setRelationId(Long relationId) { this.relationId = relationId; } public Long getTestId() { return testId; } public void setTestId(Long testId) { this.testId = testId; } public Long getGroupId() { return groupId; } public void setGroupId(Long groupId) { this.groupId = groupId; } public String getBatteryNo() { return batteryNo; } public void setBatteryNo(String batteryNo) { this.batteryNo = batteryNo; } public Long getCabinetId() { return cabinetId; } public void setCabinetId(Long cabinetId) { this.cabinetId = cabinetId; } public Integer getTestChannelNo() { return testChannelNo; } public void setTestChannelNo(Integer testChannelNo) { this.testChannelNo = testChannelNo; } public Long getCollectorId() { return collectorId; } public void setCollectorId(Long collectorId) { this.collectorId = collectorId; } public Integer getTemperatureChannelNo() { return temperatureChannelNo; } public void setTemperatureChannelNo(Integer temperatureChannelNo) { this.temperatureChannelNo = temperatureChannelNo; } public Integer getPositiveChannelNo() { return positiveChannelNo; } public void setPositiveChannelNo(Integer positiveChannelNo) { this.positiveChannelNo = positiveChannelNo; } public Integer getNegativeChannelNo() { return negativeChannelNo; } public void setNegativeChannelNo(Integer negativeChannelNo) { this.negativeChannelNo = negativeChannelNo; } public String getDelFlag() { return delFlag; } public void setDelFlag(String delFlag) { this.delFlag = delFlag; } public List getFields() { return fields; } public void setFields(List fields) { this.fields = fields; } }