package com.ruoyi.system.domain; import java.util.Date; import java.util.List; import com.alibaba.fastjson2.annotation.JSONField; import com.fasterxml.jackson.annotation.JsonFormat; import jakarta.validation.Valid; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import com.ruoyi.common.core.domain.BaseEntity; /** 测试配置及其独立业务状态。 */ public class TTest extends BaseEntity { private static final long serialVersionUID = 1L; private Long testId; @NotBlank(message = "测试名称不能为空") @Size(max = 100, message = "测试名称长度不能超过100个字符") private String testName; private Long creatorId; private String creatorName; @JSONField(serialize = false) private transient Long operatorId; @NotNull(message = "测试负责人不能为空") private Long principalId; private String principalName; @NotNull(message = "测试类型不能为空") private Long testTypeId; private String testTypeName; @NotBlank(message = "测试目的不能为空") private String testPurpose; private String testStatus; private String receptionStatus; private Integer monitorTimeoutMinutes; private Date startedAtUtc; private Date endedAtUtc; /** 是否从已运行设备的后续观测边界接入。 */ private Boolean runtimeAttach; private String delFlag; private String batteryNo; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date beginCreateTime; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date endCreateTime; private Integer batteryCount; @Valid @NotEmpty(message = "测试至少绑定一个电池号") private List batteries; @Valid private List planSteps; @Valid @NotEmpty(message = "阈值配置不能为空") private List thresholds; private List fieldSnapshots; private List resultSummary; private String logicStepMappingsJson; private List logicStepMappings; public Long getTestId() { return testId; } public void setTestId(Long value) { testId = value; } public String getTestName() { return testName; } public void setTestName(String value) { testName = value; } public Long getCreatorId() { return creatorId; } public void setCreatorId(Long value) { creatorId = value; } public String getCreatorName() { return creatorName; } public void setCreatorName(String value) { creatorName = value; } public Long getOperatorId() { return operatorId; } public void setOperatorId(Long value) { operatorId = value; } public Long getPrincipalId() { return principalId; } public void setPrincipalId(Long value) { principalId = value; } public String getPrincipalName() { return principalName; } public void setPrincipalName(String value) { principalName = value; } public Long getTestTypeId() { return testTypeId; } public void setTestTypeId(Long value) { testTypeId = value; } public String getTestTypeName() { return testTypeName; } public void setTestTypeName(String value) { testTypeName = value; } public String getTestPurpose() { return testPurpose; } public void setTestPurpose(String value) { testPurpose = value; } public String getTestStatus() { return testStatus; } public void setTestStatus(String value) { testStatus = value; } public String getReceptionStatus() { return receptionStatus; } public void setReceptionStatus(String value) { receptionStatus = value; } public Integer getMonitorTimeoutMinutes() { return monitorTimeoutMinutes; } public void setMonitorTimeoutMinutes(Integer value) { monitorTimeoutMinutes = value; } public Date getStartedAtUtc() { return startedAtUtc; } public void setStartedAtUtc(Date value) { startedAtUtc = value; } public Date getEndedAtUtc() { return endedAtUtc; } public void setEndedAtUtc(Date value) { endedAtUtc = value; } public Boolean getRuntimeAttach() { return runtimeAttach; } public void setRuntimeAttach(Boolean value) { runtimeAttach = value; } public String getDelFlag() { return delFlag; } public void setDelFlag(String value) { delFlag = value; } public String getBatteryNo() { return batteryNo; } public void setBatteryNo(String value) { batteryNo = value; } public Date getBeginCreateTime() { return beginCreateTime; } public void setBeginCreateTime(Date value) { beginCreateTime = value; } public Date getEndCreateTime() { return endCreateTime; } public void setEndCreateTime(Date value) { endCreateTime = value; } public Integer getBatteryCount() { return batteryCount; } public void setBatteryCount(Integer value) { batteryCount = value; } public List getBatteries() { return batteries; } public void setBatteries(List value) { batteries = value; } public List getPlanSteps() { return planSteps; } public void setPlanSteps(List value) { planSteps = value; } public List getThresholds() { return thresholds; } public void setThresholds(List value) { thresholds = value; } public List getFieldSnapshots() { return fieldSnapshots; } public void setFieldSnapshots(List value) { fieldSnapshots = value; } public List getResultSummary() { return resultSummary; } public void setResultSummary(List value) { resultSummary = value; } public String getLogicStepMappingsJson() { return logicStepMappingsJson; } public void setLogicStepMappingsJson(String value) { logicStepMappingsJson = value; } public List getLogicStepMappings() { return logicStepMappings; } public void setLogicStepMappings(List value) { logicStepMappings = value; } }