yeg
2026-09-29 b78295e8da96c3e5e76befeef9582ce5273dbb74
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
package com.battery.business.domain;
 
import java.io.Serializable;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
 
/** 使用 SI 业务单位保存的测试告警阈值,对应表 t_test_warning_threshold;供接收中的实时超限判定使用。 */
public class TTestWarningThreshold implements Serializable
{
    private static final long serialVersionUID = 1L;
 
    /** 阈值主键。 */
    private Long thresholdId;
    /** 所属测试主键。 */
    private Long testId;
    /** 指标编码,须与观测指标匹配,如电压、电流、容量、能量、温度;支持主要测量前缀形式。 */
    @NotBlank(message = "指标编码不能为空")
    @Size(max = 100, message = "指标编码长度不能超过100个字符")
    private String metricCode;
    /** 下限,为空表示不判下限;单位与该指标的业务单位一致。 */
    private BigDecimal minValue;
    /** 上限,为空表示不判上限;单位与该指标的业务单位一致。 */
    private BigDecimal maxValue;
    /** 阈值单位,只允许 A、V、Ah、Wh、℃。 */
    @NotBlank(message = "阈值单位不能为空")
    private String unit;
    /** 严重程度:WARNING 警告;随异常事实保存为触发时的规则快照。 */
    private String severity;
    /** 逻辑删除标识:0存在,其他值表示已删除。 */
    private String delFlag;
 
    public Long getThresholdId() { return thresholdId; }
    public void setThresholdId(Long value) { thresholdId = value; }
    public Long getTestId() { return testId; }
    public void setTestId(Long value) { testId = value; }
    public String getMetricCode() { return metricCode; }
    public void setMetricCode(String value) { metricCode = value; }
    public BigDecimal getMinValue() { return minValue; }
    public void setMinValue(BigDecimal value) { minValue = value; }
    public BigDecimal getMaxValue() { return maxValue; }
    public void setMaxValue(BigDecimal value) { maxValue = value; }
    public String getUnit() { return unit; }
    public void setUnit(String value) { unit = value; }
    public String getSeverity() { return severity; }
    public void setSeverity(String value) { severity = value; }
    public String getDelFlag() { return delFlag; }
    public void setDelFlag(String value) { delFlag = value; }
}