From 3d6a6796bb90da3d87d35625b169c1f9680fae83 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 15 二月 2024 00:03:26 +0800
Subject: [PATCH] #
---
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/entity/Menu.java | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/entity/Menu.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/entity/Menu.java
index 7b014d1..26bedd4 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/entity/Menu.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/entity/Menu.java
@@ -1,8 +1,6 @@
package com.zy.asrs.wcs.sys.entity;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.zy.asrs.framework.common.Cools;
import com.zy.asrs.framework.common.SpringUtils;
import com.zy.asrs.wcs.sys.service.HostService;
@@ -15,6 +13,7 @@
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
+import java.util.List;
@Data
@TableName("sys_menu")
@@ -67,6 +66,12 @@
*/
@ApiModelProperty(value= "璺敱鍦板潃")
private String route;
+
+ /**
+ * 椤甸潰缁勪欢
+ */
+ @ApiModelProperty(value= "椤甸潰缁勪欢")
+ private String component;
/**
* 绠�杩�
@@ -126,6 +131,7 @@
* 鏄惁鍒犻櫎 1: 鏄� 0: 鍚�
*/
@ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄� 0: 鍚� ")
+ @TableLogic
private Integer deleted;
/**
@@ -160,15 +166,19 @@
@ApiModelProperty(value= "澶囨敞")
private String memo;
+ @TableField(exist = false)
+ private List<Menu> children;
+
public Menu() {}
- public Menu(String name,Long parentId,String parentName,String path,String pathName,String route,String brief,String code,Integer type,String authority,String icon,Integer sort,String meta,Long hostId,Integer status,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) {
+ public Menu(String name, Long parentId, String parentName, String path, String pathName, String route, String component, String brief, String code, Integer type, String authority, String icon, Integer sort, String meta, Long hostId, Integer status, Integer deleted, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo) {
this.name = name;
this.parentId = parentId;
this.parentName = parentName;
this.path = path;
this.pathName = pathName;
this.route = route;
+ this.component = component;
this.brief = brief;
this.code = code;
this.type = type;
@@ -186,7 +196,7 @@
this.memo = memo;
}
-// Menu menu = new Menu(
+ // Menu menu = new Menu(
// null, // 鍚嶇О[闈炵┖]
// null, // 涓婄骇鑿滃崟
// null, // 涓婄骇鑿滃崟鍚�
--
Gitblit v1.9.1