From 1de0d92e2a630927f391ae080709ae678e5f5618 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 17 四月 2024 15:28:46 +0800
Subject: [PATCH] 工单事后报备:新增点位id

---
 ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java |   72 ++++++++----------------------------
 1 files changed, 16 insertions(+), 56 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..5ee3794 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
@@ -2,9 +2,13 @@
 
 
 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.ycl.system.entity.BaseEntity;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
+import enumeration.general.BusinessTypeEnum;
+import lombok.Data;
 
 /**
  * 杩愮淮闃堝�煎璞� t_yw_threshold
@@ -12,87 +16,43 @@
  * @author gonghl
  * @date 2024-03-25
  */
+@Data
+@TableName("t_yw_threshold")
 public class YwThreshold extends BaseEntity {
+
     private static final long serialVersionUID = 1L;
 
     /**
      * 涓婚敭
      */
+    @TableId(value = "id", type = IdType.AUTO)
     private Integer id;
 
     /**
      * 璁惧绫诲瀷锛�1浜鸿劯 2杞﹁締 3瑙嗛
      */
-    @Excel(name = "璁惧绫诲瀷锛�1浜鸿劯 2杞﹁締 3瑙嗛")
-    private String monitorType;
+    @Excel(name = "璁惧绫诲瀷")
+    @TableField("monitor_type")
+    private BusinessTypeEnum monitorType;
 
     /**
      * 瓒呮椂澶╂暟
      */
     @Excel(name = "瓒呮椂澶╂暟")
+    @TableField("timeout")
     private Integer timeout;
 
     /**
      * 鎸囨爣json
      */
     @Excel(name = "鎸囨爣json")
+    @TableField("indicator")
     private String indicator;
 
     /**
      * 閫昏緫鍒犻櫎锛�0鏈垹闄� 1鍒犻櫎
      */
+    @TableField("deleted")
     private String deleted;
 
-    public void setId(Integer id) {
-        this.id = id;
-    }
-
-    public Integer getId() {
-        return id;
-    }
-
-    public void setMonitorType(String monitorType) {
-        this.monitorType = monitorType;
-    }
-
-    public String getMonitorType() {
-        return monitorType;
-    }
-
-    public void setTimeout(Integer timeout) {
-        this.timeout = timeout;
-    }
-
-    public Integer getTimeout() {
-        return timeout;
-    }
-
-    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