From 12d76e4f205c41cf3fd8ea215b787e900b3cc876 Mon Sep 17 00:00:00 2001 From: sxq <812980466@qq.com> Date: 星期三, 20 十月 2021 11:56:17 +0800 Subject: [PATCH] 1:properties 换成yml 配置文件。 2:默认端口改成9100。 --- ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java | 124 +++++++++++++++-------------------------- 1 files changed, 45 insertions(+), 79 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..c0e62c7 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,79 +1,45 @@ -package com.ruoyi.common.core.domain; - -import java.util.ArrayList; -import java.util.List; - -/** - * Tree鍩虹被 - * - * @author ruoyi - */ -public class TreeEntity extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 鐖惰彍鍗曞悕绉� */ - private String parentName; - - /** 鐖惰彍鍗旾D */ - private Long parentId; - - /** 鏄剧ず椤哄簭 */ - private Integer orderNum; - - /** 绁栫骇鍒楄〃 */ - private String ancestors; - - /** 瀛愰儴闂� */ - 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; - } -} +package com.ruoyi.common.core.domain; + +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.util.ArrayList; +import java.util.List; + +/** + * Tree鍩虹被 + * + * @author Lion Li + */ + +@Data +@EqualsAndHashCode(callSuper = true) +@Accessors(chain = true) +public class TreeEntity extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 鐖惰彍鍗曞悕绉� + */ + @TableField(exist = false) + @ApiModelProperty(value = "鐖惰彍鍗曞悕绉�") + private String parentName; + + /** + * 鐖惰彍鍗旾D + */ + @ApiModelProperty(value = "鐖惰彍鍗旾D") + private Long parentId; + + /** + * 瀛愰儴闂� + */ + @TableField(exist = false) + @ApiModelProperty(value = "瀛愰儴闂�") + private List<?> children = new ArrayList<>(); + +} -- Gitblit v1.9.3