From 7f950be0d43e4c622dcae5bf97cb470a8379dd66 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 12 四月 2024 16:56:17 +0800
Subject: [PATCH] 继承MybatisPlus
---
ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java | 66 +++++++--------------------------
1 files changed, 14 insertions(+), 52 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..b006a85 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,7 +2,12 @@
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 lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -12,87 +17,44 @@
* @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瑙嗛")
+ @TableField("monitor_type")
private String 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