From 323fe960bd07d0961b1b8f9ae8a4ad237450858e Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 12 四月 2021 17:26:47 +0800 Subject: [PATCH] update 更新基础包与核心包 lombok 化 --- ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java | 57 ++++++++------------------------------------------------- 1 files changed, 8 insertions(+), 49 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java index 171f04c..2569fac 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java @@ -1,5 +1,8 @@ package com.ruoyi.common.core.domain; +import lombok.*; +import lombok.experimental.Accessors; + import java.util.ArrayList; import java.util.List; @@ -8,6 +11,11 @@ * * @author ruoyi */ + +@EqualsAndHashCode(callSuper = true) +@Data +@NoArgsConstructor +@Accessors(chain = true) public class TreeEntity extends BaseEntity { private static final long serialVersionUID = 1L; @@ -27,53 +35,4 @@ /** 瀛愰儴闂� */ private List<?> children = new ArrayList<>(); - public String getParentName() - { - return parentName; - } - - public void setParentName(String parentName) - { - this.parentName = parentName; - } - - public Long getParentId() - { - return parentId; - } - - public void setParentId(Long parentId) - { - this.parentId = parentId; - } - - public Integer getOrderNum() - { - return orderNum; - } - - public void setOrderNum(Integer orderNum) - { - this.orderNum = orderNum; - } - - public String getAncestors() - { - return ancestors; - } - - public void setAncestors(String ancestors) - { - this.ancestors = ancestors; - } - - public List<?> getChildren() - { - return children; - } - - public void setChildren(List<?> children) - { - this.children = children; - } } -- Gitblit v1.9.3