策略bug修改

This commit is contained in:
wurui
2023-03-23 18:49:35 +08:00
parent 96d6c09101
commit 084e05eb12
4 changed files with 28 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ public enum ProcessResponseEnum {
PROCESS_ERROR("A00553","当前流程未审核通过,操作失败!"),
QUERY_IS_EMPTY("A00554","当前未查询到当前策略信息,无法删除!"),
ENABLED_CANNOT_BE_DELETED("A00555","策略为启用状态不能删除!"),
THERE_IS_ONLY_ONE_STRATEGY("A00556","自动策略或手动策略,通用策略只能有一条!"),
THERE_IS_ONLY_ONE_STRATEGY("A00556","各个策略等级,通用策略只能有一条!"),
;
private final String code;

View File

@@ -116,6 +116,10 @@ public class StrategyParam {
@NotNull(message = "策略选择不能为空")
private Integer bigType;
@ApiModelProperty(value = "区分预警单还是告警单(0预警单1告警单)")
@NotNull(message = "区分类别不能为空")
private Integer type;
@ApiModelProperty(value = "等级0一级1二级2三级")
@NotNull(message = "等级不能为空")
private Integer grade;

View File

@@ -53,7 +53,6 @@ public class ThsWarnStrategy extends BaseEntity implements Serializable {
@ApiModelProperty(value = "0.删除 1.启用 2.关闭")
@TableField("State")
@TableLogic(value = "1",delval = "0")
private Integer state;
@TableField("Create_By")