AlarmCustomRuleConfig.java 4.2 KB
package com.skua.modules.alarmtmp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.skua.core.aspect.annotation.Dict;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 报警方案库
 */
@Data
@TableName("alarm_custom_rule_config")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="alarm_custom_rule_config对象", description="报警方案库")
public class AlarmCustomRuleConfig {
    
	/**报警ID 主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "报警ID 主键")
	private java.lang.String id;
	/**报警方案名称*/
	@Excel(name = "报警方案名称", width = 15)
    @ApiModelProperty(value = "报警方案名称")
	private java.lang.String alarmRuleName;
	/**报警方案类别*/
	@Excel(name = "报警方案类别", width = 15)
    @ApiModelProperty(value = "报警方案类别")
	@Dict(dictTable = "alarm_custom_rule_repository",dicCode = "id",dicText = "alarm_repository_name")
	private java.lang.String alarmRuleRepositoryId;
	@ApiModelProperty(value = "报警方案类别treepath")
	private java.lang.String alarmRuleRepositoryTreepath;
	
	/**报警类型(1:出水水质报警,2:出水水质报警 3:瞬时流量报警4:设备故障报警5:质量报警 6过程仪表报警)*/
	@Excel(name = "报警类型(1:出水水质报警,2:出水水质报警 3:瞬时流量报警4:设备故障报警5:质量报警 6过程仪表报警)", width = 15)
    @ApiModelProperty(value = "报警类型(1:出水水质报警,2:出水水质报警 3:瞬时流量报警4:设备故障报警5:质量报警 6过程仪表报警)")
	@Dict(dictTable = "alarm_rule_config_public_templete",dicCode = "type",dicText = "name")
	private java.lang.String alarmRuleType;
	/**报警指标标签编码*/
	@Excel(name = "报警指标json", width = 15)
    @ApiModelProperty(value = "报警指标json")
	private java.lang.String alarmIndexJson;
	/**报警间隔(单位h)*/
	@Excel(name = "报警间隔(单位h)", width = 15)
    @ApiModelProperty(value = "报警规则")
	private java.lang.String alarmRuleJson;
	@Excel(name = "报警处理建议", width = 15)
    @ApiModelProperty(value = "报警处理建议")
	private java.lang.String alarmRecommend;
	/**报警是否启用(0:停止,1:启用)*/
	@Excel(name = "报警是否启用(0:停止,1:启用)", width = 15)
    @ApiModelProperty(value = "报警是否启用(0:停止,1:启用)")
	private java.lang.String alarmRuleStatus;
	/**创建时间*/
	@Excel(name = "创建时间", width = 15)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	
	/**创建用户ID*/
	@Excel(name = "创建用户ID", width = 15)
    @ApiModelProperty(value = "创建用户ID")
	private java.lang.String createBy;
	@Excel(name = "更新时间", width = 15)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.lang.String updateTime;
	/**更新用户ID*/
	@Excel(name = "更新用户ID", width = 15)
    @ApiModelProperty(value = "更新用户ID")
	private java.lang.String updateBy;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
	private java.lang.String createDept;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    @ApiModelProperty(value = "所属公司")
	private java.lang.String createCmpy;
	/**删除标识(0:删除,1:有效)*/
	@Excel(name = "删除标识(0:删除,1:有效)", width = 15)
    @ApiModelProperty(value = "删除标识(0:删除,1:有效)")
	private java.lang.Integer delFlag;
	/**departId*/
	@Excel(name = "departId", width = 15)
    @ApiModelProperty(value = "departId")
	private java.lang.String departId;
}