瀏覽代碼

调整文件

liuyaowen 10 月之前
父節點
當前提交
e70c4127a3
共有 1 個文件被更改,包括 9 次插入137 次删除
  1. 9 137
      src/main/java/com/yunfeiyun/agmp/iot/common/domain/IotWarnPolicy.java

+ 9 - 137
src/main/java/com/yunfeiyun/agmp/iot/common/domain/IotWarnPolicy.java

@@ -1,18 +1,16 @@
 package com.yunfeiyun.agmp.iot.common.domain;
 
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
+import lombok.Data;
 import org.hibernate.validator.constraints.Length;
-import com.yunfeiyun.agmp.common.annotation.Excel;
 
 /**
- * 告警通知策略,存储所有与告警相关的通知策略信息对象 IotWarnPolicy
+ * 告警通知策略,存储所有与告警相关的通知策略信息对象 IotWarnpolicy
  * 
  * @author 杨晓辉
  * @date 2025-03-07
- */
-public class IotWarnPolicy extends IotBaseEntity
-{
+ */1
+@Data
+public class IotWarnpolicy extends IotBaseEntity {
     private static final long serialVersionUID = 1L;
 
     /** 自增主键 */
@@ -27,19 +25,19 @@ public class IotWarnPolicy extends IotBaseEntity
     private String wcBid;
 
     /** 通知频率,例如:实时/每小时/每天等 */
-    @Length(max = 50 , message = "通知频率,例如:实时/每小时/每天等最大长度为50")
+    @Length(max = 50 , message = "通知频率最大长度为50")
     private String wpFrequency;
 
     /** 推送方式: 0即时推送,1选定时间内推送 */
-    @Length(max = 1 , message = "推送方式: 0即时推送,1选定时间内推送最大长度为1")
+    @Length(max = 1 , message = "推送方式最大长度为1")
     private String wpType;
 
     /** 推送时间段,wpType为1时生效 */
-    @Length(max = 50 , message = "推送时间段,wpType为1时生效最大长度为50")
+    @Length(max = 50 , message = "推送时间段最大长度为50")
     private String deliveryTimePeriod;
 
     /** 通知推送渠道,例如:APP/短信/微信/钉钉/站内等 */
-    @Length(max = 1 , message = "通知推送渠道,例如:APP/短信/微信/钉钉/站内等最大长度为1")
+    @Length(max = 1 , message = "通知推送渠道最大长度为1")
     private String wpChannel;
 
     /** 创建人 */
@@ -62,130 +60,4 @@ public class IotWarnPolicy extends IotBaseEntity
     @Length(max = 36 , message = "租户标识最大长度为36")
     private String tid;
 
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public Long getId()
-    {
-        return id;
-    }
-    public void setWpBid(String wpBid)
-    {
-        this.wpBid = wpBid;
-    }
-
-    public String getWpBid()
-    {
-        return wpBid;
-    }
-    public void setWcBid(String wcBid)
-    {
-        this.wcBid = wcBid;
-    }
-
-    public String getWcBid()
-    {
-        return wcBid;
-    }
-    public void setWpFrequency(String wpFrequency)
-    {
-        this.wpFrequency = wpFrequency;
-    }
-
-    public String getWpFrequency()
-    {
-        return wpFrequency;
-    }
-    public void setWpType(String wpType)
-    {
-        this.wpType = wpType;
-    }
-
-    public String getWpType()
-    {
-        return wpType;
-    }
-    public void setDeliveryTimePeriod(String deliveryTimePeriod)
-    {
-        this.deliveryTimePeriod = deliveryTimePeriod;
-    }
-
-    public String getDeliveryTimePeriod()
-    {
-        return deliveryTimePeriod;
-    }
-    public void setWpChannel(String wpChannel)
-    {
-        this.wpChannel = wpChannel;
-    }
-
-    public String getWpChannel()
-    {
-        return wpChannel;
-    }
-    public void setWpCreator(String wpCreator)
-    {
-        this.wpCreator = wpCreator;
-    }
-
-    public String getWpCreator()
-    {
-        return wpCreator;
-    }
-    public void setWpCreateddate(String wpCreateddate)
-    {
-        this.wpCreateddate = wpCreateddate;
-    }
-
-    public String getWpCreateddate()
-    {
-        return wpCreateddate;
-    }
-    public void setWpModifieddate(String wpModifieddate)
-    {
-        this.wpModifieddate = wpModifieddate;
-    }
-
-    public String getWpModifieddate()
-    {
-        return wpModifieddate;
-    }
-    public void setWpModifier(String wpModifier)
-    {
-        this.wpModifier = wpModifier;
-    }
-
-    public String getWpModifier()
-    {
-        return wpModifier;
-    }
-    public void setTid(String tid)
-    {
-        this.tid = tid;
-    }
-
-    public String getTid()
-    {
-        return tid;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("wpBid", getWpBid())
-            .append("wcBid", getWcBid())
-            .append("wpFrequency", getWpFrequency())
-            .append("wpType", getWpType())
-            .append("deliveryTimePeriod", getDeliveryTimePeriod())
-            .append("wpChannel", getWpChannel())
-            .append("wpCreator", getWpCreator())
-            .append("wpCreateddate", getWpCreateddate())
-            .append("wpModifieddate", getWpModifieddate())
-            .append("wpModifier", getWpModifier())
-            .append("tid", getTid())
-            .toString();
-    }
 }