|
@@ -1,6 +1,8 @@
|
|
|
package com.km.common.orm.core.domain;
|
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
import com.mybatisflex.annotation.Column;
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
@@ -20,25 +22,27 @@ public class TreeEntity extends BaseEntity {
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
/**
|
|
|
- * 父菜单名称
|
|
|
+ * 父级名称
|
|
|
*/
|
|
|
@Column(ignore = true)
|
|
|
private String parentName;
|
|
|
|
|
|
/**
|
|
|
- * 父菜单ID
|
|
|
+ * 父亲ID
|
|
|
*/
|
|
|
+ @ExcelProperty(value = "上级编号")
|
|
|
+ @NotNull(message = "上级编号不能为空")
|
|
|
private Long parentId;
|
|
|
|
|
|
/**
|
|
|
* 显示顺序
|
|
|
*/
|
|
|
+ @ExcelProperty(value = "显示顺序")
|
|
|
private Integer orderNum;
|
|
|
|
|
|
/**
|
|
|
* 祖级列表
|
|
|
*/
|
|
|
- @Column(ignore = true)
|
|
|
private String ancestors;
|
|
|
|
|
|
/**
|
|
@@ -46,4 +50,5 @@ public class TreeEntity extends BaseEntity {
|
|
|
*/
|
|
|
@Column(ignore = true)
|
|
|
private List<Object> children = new ArrayList<>();
|
|
|
+
|
|
|
}
|