| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | |
| | | import annotation.Excel; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 运维阈值对象 t_yw_threshold |
| | | * |
| | | * @author gonghl |
| | | * @date 2024-03-25 |
| | | * @date 2024-07-19 |
| | | */ |
| | | public class YwThreshold extends BaseEntity { |
| | | @Data |
| | | @TableName("t_yw_threshold") |
| | | public class YwThreshold |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | private Integer id; |
| | | /** */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 设备类型:1人脸 2车辆 3视频 |
| | | */ |
| | | @Excel(name = "设备类型:1人脸 2车辆 3视频") |
| | | /** 设备类型 */ |
| | | @Excel(name = "设备类型") |
| | | @TableField("monitor_type") |
| | | private String monitorType; |
| | | |
| | | /** |
| | | * 超时天数 |
| | | */ |
| | | @Excel(name = "超时天数") |
| | | private Integer timeout; |
| | | /** 计数类型 */ |
| | | @Excel(name = "计数类型") |
| | | @TableField("count_type") |
| | | private String countType; |
| | | |
| | | /** |
| | | * 指标json |
| | | */ |
| | | @Excel(name = "指标json") |
| | | private String indicator; |
| | | /** 键值对应YwThreadConstants */ |
| | | @Excel(name = "键值") |
| | | @TableField("`key`") |
| | | private String key; |
| | | |
| | | /** |
| | | * 逻辑删除:0未删除 1删除 |
| | | */ |
| | | private String deleted; |
| | | /** 阈值名 */ |
| | | @Excel(name = "阈值名") |
| | | @TableField("name") |
| | | private String name; |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | /** 直接下发阈值 */ |
| | | @Excel(name = "直接下发阈值") |
| | | @TableField("value") |
| | | private String value; |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | /** 待下发阈值 */ |
| | | @Excel(name = "待下发阈值") |
| | | @TableField("value_auto") |
| | | private String valueAuto; |
| | | |
| | | public void setMonitorType(String monitorType) { |
| | | this.monitorType = monitorType; |
| | | } |
| | | /** 描述 */ |
| | | @Excel(name = "描述") |
| | | @TableField("description") |
| | | private String description; |
| | | |
| | | public String getMonitorType() { |
| | | return monitorType; |
| | | } |
| | | /** 逻辑删除:0未删除 1删除 */ |
| | | @Excel(name = "逻辑删除:0未删除 1删除") |
| | | private Integer deleted; |
| | | |
| | | public void setTimeout(Integer timeout) { |
| | | this.timeout = timeout; |
| | | } |
| | | /** 创建时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField("create_time") |
| | | @Excel(name = "创建时间") |
| | | private Date createTime; |
| | | |
| | | public Integer getTimeout() { |
| | | return timeout; |
| | | } |
| | | /** 更新时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField("update_time") |
| | | @Excel(name = "更新时间") |
| | | private Date updateTime; |
| | | |
| | | public void setIndicator(String indicator) { |
| | | this.indicator = indicator; |
| | | } |
| | | |
| | | public String getIndicator() { |
| | | return indicator; |
| | | } |
| | | |
| | | public void setDeleted(String deleted) { |
| | | this.deleted = deleted; |
| | | } |
| | | |
| | | public String getDeleted() { |
| | | return deleted; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("monitorType", getMonitorType()) |
| | | .append("timeout", getTimeout()) |
| | | .append("indicator", getIndicator()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("deleted", getDeleted()) |
| | | .toString(); |
| | | } |
| | | } |