云
2 天以前 657698fd2fb32794932474648dbaee9e284e38c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cn.iocoder.yudao.module.mes.controller.admin.energy.vo;
 
import jakarta.validation.constraints.*;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
 
@Data
public class EnergyAlertRuleSaveReqVO {
    private Long id;
    @NotBlank @Size(max = 100) private String name;
    @NotNull @Pattern(regexp = "WATER|ELECTRICITY|STEAM") private String energyType;
    @Size(max = 100) private String usageArea;
    @Size(max = 50) private String productCategory;
    @NotNull @Pattern(regexp = "QUANTITY|AMOUNT|MONTH_QUANTITY|MONTH_AMOUNT") private String metric;
    @NotNull @DecimalMin(value = "0", inclusive = false) @Digits(integer = 26, fraction = 3)
    private BigDecimal threshold;
    @NotNull private Boolean enabled;
    @NotEmpty @Size(max = 50) private List<@NotNull @Positive Long> recipientIds;
}