Explorar o código

加入规则解释

yumeng %!s(int64=4) %!d(string=hai) anos
pai
achega
19e3213248

+ 39 - 24
module-alarm/src/main/java/cn/com/ctop/alarm/modules/entity/RuleGroup.java

@@ -1,53 +1,68 @@
 package cn.com.ctop.alarm.modules.entity;
 
-import java.io.Serializable;
-import java.util.Date;
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
-import com.baomidou.mybatisplus.annotation.TableField;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.experimental.Accessors;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import org.springframework.format.annotation.DateTimeFormat;
 import org.jeecgframework.poi.excel.annotation.Excel;
 
+import java.util.Date;
+
 /**
  * 规则组
+ *
  * @author jeecg-boot
- * @date   2020-11-15
  * @version V1.0
+ * @date 2020-11-15
  */
 @Data
 @TableName("ctop_rule_group")
 @EqualsAndHashCode(callSuper = false)
 @Accessors(chain = true)
-@ApiModel(value="ctop_rule_group对象", description="规则组")
+@ApiModel(value = "ctop_rule_group对象", description = "规则组")
 public class RuleGroup {
-    
-	/**id*/
-	@TableId(type = IdType.AUTO)
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
     @ApiModelProperty(value = "id")
-	private Long id;
-	/**规则id列表*/
-	@Excel(name = "规则id列表", width = 15)
+    private Long id;
+    /**
+     * 规则id列表
+     */
+    @Excel(name = "规则id列表", width = 15)
     @ApiModelProperty(value = "规则id列表")
-	private String ruleIds;
-	/**规则类型 group为组合规则 base 为单条规则*/
-	@Excel(name = "规则类型 group为组合规则 base 为单条规则", width = 15)
+    private String ruleIds;
+    /**
+     * 规则类型 group为组合规则 base 为单条规则
+     */
+    @Excel(name = "规则类型 group为组合规则 base 为单条规则", width = 15)
     @ApiModelProperty(value = "规则类型 group为组合规则 base 为单条规则")
-	private String ruleType;
-	/**规则关系 当rule_type 为group时必填 and同时命中  or 命中一条*/
-	@Excel(name = "规则关系 当rule_type 为group时必填 and同时命中  or 命中一条", width = 15)
+    private String ruleType;
+    /**
+     * 规则关系 当rule_type 为group时必填 and同时命中  or 命中一条
+     */
+    @Excel(name = "规则关系 当rule_type 为group时必填 and同时命中  or 命中一条", width = 15)
     @ApiModelProperty(value = "规则关系 当rule_type 为group时必填 and同时命中  or 命中一条")
-	private String ruleRelationship;
-	/**createTime*/
+    private String ruleRelationship;
+
+    /**
+     * 规则解释
+     */
+    private String explain;
+    /**
+     * createTime
+     */
     @ApiModelProperty(value = "createTime")
-	private Date createTime;
-	/**updateTime*/
+    private Date createTime;
+    /**
+     * updateTime
+     */
     @ApiModelProperty(value = "updateTime")
-	private Date updateTime;
+    private Date updateTime;
 }