yeg
2026-09-05 acfb83068486766f63284b479d30f78e3ec17dca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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 com.fasterxml.jackson.annotation.JsonIgnore;
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 receptionBoundaryAtUtc;
    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<TTestBattery> batteries;
    @Valid
    private List<TTestPlanStep> planSteps;
    @Valid
    @NotEmpty(message = "阈值配置不能为空")
    private List<TTestWarningThreshold> thresholds;
    /** 历史兼容字段,不再持久化或对外返回;当前字段从电池组关系实时读取。 */
    @JsonIgnore
    private List<TTestFieldSnapshot> fieldSnapshots;
    private List<TTestResult> resultSummary;
    private String logicStepMappingsJson;
    private List<TTestLogicStepMapping> logicStepMappings;
    /** 工步图表中的测试补充详情,仅保存当前最新版。 */
    private String consoleDetailJson;
    private TTestConsoleDetail consoleDetail;
 
    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 getReceptionBoundaryAtUtc() { return receptionBoundaryAtUtc; }
    public void setReceptionBoundaryAtUtc(Date value) { receptionBoundaryAtUtc = 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<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<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; }
    public String getConsoleDetailJson() { return consoleDetailJson; }
    public void setConsoleDetailJson(String value) { consoleDetailJson = value; }
    public TTestConsoleDetail getConsoleDetail() { return consoleDetail; }
    public void setConsoleDetail(TTestConsoleDetail value) { consoleDetail = value; }
}