yeg
2026-08-26 e12439d1f4a94957d68cda653cb666702bc71040
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
package com.ruoyi.system.domain;
 
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
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;
 
/**
 * 测试任务对象 t_test。
 *
 * @author ruoyi
 */
public class TTest extends BaseEntity
{
    private static final long serialVersionUID = 1L;
 
    private Long testId;
    @NotBlank(message = "测试名称不能为空")
    @Size(max = 100, message = "测试名称长度不能超过100个字符")
    private String testName;
    @NotNull(message = "测试负责人不能为空")
    private Long principalId;
    private String principalName;
    @NotNull(message = "测试类型不能为空")
    private Long testTypeId;
    private String testTypeName;
    @NotBlank(message = "测试目的不能为空")
    private String testPurpose;
    private String status;
    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;
    @NotEmpty(message = "测试电池关系不能为空")
    private List<TTestBattery> batteries;
    @NotEmpty(message = "预警阈值不能为空")
    private List<TTestWarningThreshold> thresholds;
    private List<TTestResult> resultSummary;
 
    public Long getTestId() { return testId; }
    public void setTestId(Long testId) { this.testId = testId; }
    public String getTestName() { return testName; }
    public void setTestName(String testName) { this.testName = testName; }
    public Long getPrincipalId() { return principalId; }
    public void setPrincipalId(Long principalId) { this.principalId = principalId; }
    public String getPrincipalName() { return principalName; }
    public void setPrincipalName(String principalName) { this.principalName = principalName; }
    public Long getTestTypeId() { return testTypeId; }
    public void setTestTypeId(Long testTypeId) { this.testTypeId = testTypeId; }
    public String getTestTypeName() { return testTypeName; }
    public void setTestTypeName(String testTypeName) { this.testTypeName = testTypeName; }
    public String getTestPurpose() { return testPurpose; }
    public void setTestPurpose(String testPurpose) { this.testPurpose = testPurpose; }
    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }
    public String getDelFlag() { return delFlag; }
    public void setDelFlag(String delFlag) { this.delFlag = delFlag; }
    public String getBatteryNo() { return batteryNo; }
    public void setBatteryNo(String batteryNo) { this.batteryNo = batteryNo; }
    public Date getBeginCreateTime() { return beginCreateTime; }
    public void setBeginCreateTime(Date beginCreateTime) { this.beginCreateTime = beginCreateTime; }
    public Date getEndCreateTime() { return endCreateTime; }
    public void setEndCreateTime(Date endCreateTime) { this.endCreateTime = endCreateTime; }
    public Integer getBatteryCount() { return batteryCount; }
    public void setBatteryCount(Integer batteryCount) { this.batteryCount = batteryCount; }
    public List<TTestBattery> getBatteries() { return batteries; }
    public void setBatteries(List<TTestBattery> batteries) { this.batteries = batteries; }
    public List<TTestWarningThreshold> getThresholds() { return thresholds; }
    public void setThresholds(List<TTestWarningThreshold> thresholds) { this.thresholds = thresholds; }
    public List<TTestResult> getResultSummary() { return resultSummary; }
    public void setResultSummary(List<TTestResult> resultSummary) { this.resultSummary = resultSummary; }
}