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 backfillStatus;
|
private Date backfillStartedAtUtc;
|
private Date backfillCompletedAtUtc;
|
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<TTestBattery> batteries;
|
@Valid
|
private List<TTestPlanStep> planSteps;
|
@Valid
|
@NotEmpty(message = "阈值配置不能为空")
|
private List<TTestWarningThreshold> thresholds;
|
private List<TTestFieldSnapshot> fieldSnapshots;
|
private List<TTestReceptionInterval> receptionIntervals;
|
private List<TTestResult> resultSummary;
|
private String logicStepMappingsJson;
|
private List<TTestLogicStepMapping> 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 getBackfillStatus() { return backfillStatus; }
|
public void setBackfillStatus(String value) { backfillStatus = value; }
|
public Date getBackfillStartedAtUtc() { return backfillStartedAtUtc; }
|
public void setBackfillStartedAtUtc(Date value) { backfillStartedAtUtc = value; }
|
public Date getBackfillCompletedAtUtc() { return backfillCompletedAtUtc; }
|
public void setBackfillCompletedAtUtc(Date value) { backfillCompletedAtUtc = 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<TTestBattery> getBatteries() { return batteries; }
|
public void setBatteries(List<TTestBattery> value) { batteries = value; }
|
public List<TTestPlanStep> getPlanSteps() { return planSteps; }
|
public void setPlanSteps(List<TTestPlanStep> value) { planSteps = value; }
|
public List<TTestWarningThreshold> getThresholds() { return thresholds; }
|
public void setThresholds(List<TTestWarningThreshold> value) { thresholds = value; }
|
public List<TTestFieldSnapshot> getFieldSnapshots() { return fieldSnapshots; }
|
public void setFieldSnapshots(List<TTestFieldSnapshot> value) { fieldSnapshots = value; }
|
public List<TTestReceptionInterval> getReceptionIntervals() { return receptionIntervals; }
|
public void setReceptionIntervals(List<TTestReceptionInterval> value) { receptionIntervals = value; }
|
public List<TTestResult> getResultSummary() { return resultSummary; }
|
public void setResultSummary(List<TTestResult> value) { resultSummary = value; }
|
public String getLogicStepMappingsJson() { return logicStepMappingsJson; }
|
public void setLogicStepMappingsJson(String value) { logicStepMappingsJson = value; }
|
public List<TTestLogicStepMapping> getLogicStepMappings() { return logicStepMappings; }
|
public void setLogicStepMappings(List<TTestLogicStepMapping> value) { logicStepMappings = value; }
|
}
|