1.暂降事件归集功能调整

This commit is contained in:
2024-12-09 11:22:01 +08:00
parent 63617c92c0
commit e47584a118

View File

@@ -65,7 +65,7 @@ public class LineParam {
*/
@ApiModelProperty(name = "devCapacity",value = "设备容量",required = true)
@NotNull(message = "设备容量不可为空")
@Pattern(regexp=PatternRegex.POSITIVEALL_NUM,message = "设备容量格式有误")
@Min(value=0,message = "设备容量格式有误")
private Float devCapacity;
/**
@@ -73,7 +73,7 @@ public class LineParam {
*/
@ApiModelProperty(name = "shortCapacity",value = "短路容量",required = true)
@NotNull(message = "短路容量不可为空")
@Pattern(regexp=PatternRegex.POSITIVEALL_NUM,message = "短路容量格式有误")
@Min(value=0,message = "设备容量格式有误")
private Float shortCapacity;
/**
@@ -81,7 +81,7 @@ public class LineParam {
*/
@ApiModelProperty(name = "dealCapacity",value = "协议容量",required = true)
@NotNull(message = "协议容量不可为空")
@Pattern(regexp=PatternRegex.POSITIVEALL_NUM,message = "协议容量格式有误")
@Min(value=0,message = "设备容量格式有误")
private Float dealCapacity;
/**
@@ -89,7 +89,7 @@ public class LineParam {
*/
@ApiModelProperty(name = "standardCapacity",value = "基准容量新增时候可为空",required = true)
@NotNull(message = "基准容量不可为空")
@Pattern(regexp=PatternRegex.POSITIVEALL_NUM,message = "基准容量格式有误")
@Min(value=0,message = "设备容量格式有误")
private Float standardCapacity;