From 3b0516a2959e25576e4f3fda697a3b025d06c8c9 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期二, 24 六月 2025 14:09:07 +0800 Subject: [PATCH] 每日录像可用指标添加日志,修改大屏为查看当前月平均 --- ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java | 131 +++++++++++++++++++------------------------ 1 files changed, 58 insertions(+), 73 deletions(-) diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java index f6f877c..7f4542f 100644 --- a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java +++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java @@ -1,98 +1,83 @@ 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; + /** 閿�煎搴擸wThreadConstants */ + @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(); - } } -- Gitblit v1.8.0