From 2af534eea471f4adb104906c7a814bcc66d4d68d Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期一, 13 九月 2021 13:03:58 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev

---
 ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java |  317 ++++++++++++++++++++--------------------------------
 1 files changed, 120 insertions(+), 197 deletions(-)

diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java
index e4443ce..d2c5bbf 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java
@@ -1,231 +1,154 @@
 package com.ruoyi.common.core.domain.entity;
 
-import java.util.ArrayList;
-import java.util.List;
+import com.baomidou.mybatisplus.annotation.*;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
 import javax.validation.constraints.NotBlank;
 import javax.validation.constraints.Size;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-import com.ruoyi.common.core.domain.BaseEntity;
+import java.io.Serializable;
+import java.util.*;
 
 /**
  * 鑿滃崟鏉冮檺琛� sys_menu
- * 
+ *
  * @author ruoyi
  */
-public class SysMenu extends BaseEntity
-{
-    private static final long serialVersionUID = 1L;
 
-    /** 鑿滃崟ID */
-    private Long menuId;
+@Data
+@NoArgsConstructor
+@Accessors(chain = true)
+@TableName("sys_menu")
+public class SysMenu implements Serializable {
+	private static final long serialVersionUID = 1L;
 
-    /** 鑿滃崟鍚嶇О */
-    private String menuName;
+	/**
+	 * 鑿滃崟ID
+	 */
+	@TableId(value = "menu_id", type = IdType.AUTO)
+	private Long menuId;
 
-    /** 鐖惰彍鍗曞悕绉� */
-    private String parentName;
+	/**
+	 * 鑿滃崟鍚嶇О
+	 */
+	@NotBlank(message = "鑿滃崟鍚嶇О涓嶈兘涓虹┖")
+	@Size(min = 0, max = 50, message = "鑿滃崟鍚嶇О闀垮害涓嶈兘瓒呰繃50涓瓧绗�")
+	private String menuName;
 
-    /** 鐖惰彍鍗旾D */
-    private Long parentId;
+	/**
+	 * 鐖惰彍鍗曞悕绉�
+	 */
+	@TableField(exist = false)
+	private String parentName;
 
-    /** 鏄剧ず椤哄簭 */
-    private String orderNum;
+	/**
+	 * 鐖惰彍鍗旾D
+	 */
+	private Long parentId;
 
-    /** 璺敱鍦板潃 */
-    private String path;
+	/**
+	 * 鏄剧ず椤哄簭
+	 */
+	@NotBlank(message = "鏄剧ず椤哄簭涓嶈兘涓虹┖")
+	private String orderNum;
 
-    /** 缁勪欢璺緞 */
-    private String component;
+	/**
+	 * 璺敱鍦板潃
+	 */
+	@Size(min = 0, max = 200, message = "璺敱鍦板潃涓嶈兘瓒呰繃200涓瓧绗�")
+	private String path;
 
-    /** 鏄惁涓哄閾撅紙0鏄� 1鍚︼級 */
-    private String isFrame;
+	/**
+	 * 缁勪欢璺緞
+	 */
+	@Size(min = 0, max = 200, message = "缁勪欢璺緞涓嶈兘瓒呰繃255涓瓧绗�")
+	private String component;
 
-    /** 绫诲瀷锛圡鐩綍 C鑿滃崟 F鎸夐挳锛� */
-    private String menuType;
+    /**
+     * 璺敱鍙傛暟
+     */
+    private String query;
 
-    /** 鏄剧ず鐘舵�侊紙0鏄剧ず 1闅愯棌锛� */
-    private String visible;
-    
-    /** 鑿滃崟鐘舵�侊紙0鏄剧ず 1闅愯棌锛� */
-    private String status;
+	/**
+	 * 鏄惁涓哄閾撅紙0鏄� 1鍚︼級
+	 */
+	private String isFrame;
 
-    /** 鏉冮檺瀛楃涓� */
-    private String perms;
+	/**
+	 * 鏄惁缂撳瓨锛�0缂撳瓨 1涓嶇紦瀛橈級
+	 */
+	private String isCache;
 
-    /** 鑿滃崟鍥炬爣 */
-    private String icon;
+	/**
+	 * 绫诲瀷锛圡鐩綍 C鑿滃崟 F鎸夐挳锛�
+	 */
+	@NotBlank(message = "鑿滃崟绫诲瀷涓嶈兘涓虹┖")
+	private String menuType;
 
-    /** 瀛愯彍鍗� */
-    private List<SysMenu> children = new ArrayList<SysMenu>();
+	/**
+	 * 鏄剧ず鐘舵�侊紙0鏄剧ず 1闅愯棌锛�
+	 */
+	private String visible;
 
-    public Long getMenuId()
-    {
-        return menuId;
-    }
+	/**
+	 * 鑿滃崟鐘舵�侊紙0鏄剧ず 1闅愯棌锛�
+	 */
+	private String status;
 
-    public void setMenuId(Long menuId)
-    {
-        this.menuId = menuId;
-    }
+	/**
+	 * 鏉冮檺瀛楃涓�
+	 */
+	@Size(min = 0, max = 100, message = "鏉冮檺鏍囪瘑闀垮害涓嶈兘瓒呰繃100涓瓧绗�")
+	private String perms;
 
-    @NotBlank(message = "鑿滃崟鍚嶇О涓嶈兘涓虹┖")
-    @Size(min = 0, max = 50, message = "鑿滃崟鍚嶇О闀垮害涓嶈兘瓒呰繃50涓瓧绗�")
-    public String getMenuName()
-    {
-        return menuName;
-    }
+	/**
+	 * 鑿滃崟鍥炬爣
+	 */
+	private String icon;
 
-    public void setMenuName(String menuName)
-    {
-        this.menuName = menuName;
-    }
+	/**
+	 * 鍒涘缓鑰�
+	 */
+	@TableField(fill = FieldFill.INSERT)
+	private String createBy;
 
-    public String getParentName()
-    {
-        return parentName;
-    }
+	/**
+	 * 鍒涘缓鏃堕棿
+	 */
+	@TableField(fill = FieldFill.INSERT)
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	private Date createTime;
 
-    public void setParentName(String parentName)
-    {
-        this.parentName = parentName;
-    }
+	/**
+	 * 鏇存柊鑰�
+	 */
+	@TableField(fill = FieldFill.INSERT_UPDATE)
+	private String updateBy;
 
-    public Long getParentId()
-    {
-        return parentId;
-    }
+	/**
+	 * 鏇存柊鏃堕棿
+	 */
+	@TableField(fill = FieldFill.INSERT_UPDATE)
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	private Date updateTime;
 
-    public void setParentId(Long parentId)
-    {
-        this.parentId = parentId;
-    }
+	/**
+	 * 澶囨敞
+	 */
+	private String remark;
 
-    @NotBlank(message = "鏄剧ず椤哄簭涓嶈兘涓虹┖")
-    public String getOrderNum()
-    {
-        return orderNum;
-    }
+	/**
+	 * 璇锋眰鍙傛暟
+	 */
+	@TableField(exist = false)
+	private Map<String, Object> params = new HashMap<>();
 
-    public void setOrderNum(String orderNum)
-    {
-        this.orderNum = orderNum;
-    }
+	/**
+	 * 瀛愯彍鍗�
+	 */
+	@TableField(exist = false)
+	private List<SysMenu> children = new ArrayList<SysMenu>();
 
-    @Size(min = 0, max = 200, message = "璺敱鍦板潃涓嶈兘瓒呰繃200涓瓧绗�")
-    public String getPath()
-    {
-        return path;
-    }
-
-    public void setPath(String path)
-    {
-        this.path = path;
-    }
-
-    @Size(min = 0, max = 200, message = "缁勪欢璺緞涓嶈兘瓒呰繃255涓瓧绗�")
-    public String getComponent()
-    {
-        return component;
-    }
-
-    public void setComponent(String component)
-    {
-        this.component = component;
-    }
-
-    public String getIsFrame()
-    {
-        return isFrame;
-    }
-
-    public void setIsFrame(String isFrame)
-    {
-        this.isFrame = isFrame;
-    }
-
-    @NotBlank(message = "鑿滃崟绫诲瀷涓嶈兘涓虹┖")
-    public String getMenuType()
-    {
-        return menuType;
-    }
-
-    public void setMenuType(String menuType)
-    {
-        this.menuType = menuType;
-    }
-
-    public String getVisible()
-    {
-        return visible;
-    }
-
-    public void setVisible(String visible)
-    {
-        this.visible = visible;
-    }
-
-    public String getStatus()
-    {
-        return status;
-    }
-
-    public void setStatus(String status)
-    {
-        this.status = status;
-    }
-
-    @Size(min = 0, max = 100, message = "鏉冮檺鏍囪瘑闀垮害涓嶈兘瓒呰繃100涓瓧绗�")
-    public String getPerms()
-    {
-        return perms;
-    }
-
-    public void setPerms(String perms)
-    {
-        this.perms = perms;
-    }
-
-    public String getIcon()
-    {
-        return icon;
-    }
-
-    public void setIcon(String icon)
-    {
-        this.icon = icon;
-    }
-
-    public List<SysMenu> getChildren()
-    {
-        return children;
-    }
-
-    public void setChildren(List<SysMenu> children)
-    {
-        this.children = children;
-    }
-    
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("menuId", getMenuId())
-            .append("menuName", getMenuName())
-            .append("parentId", getParentId())
-            .append("orderNum", getOrderNum())
-            .append("path", getPath())
-            .append("component", getComponent())
-            .append("isFrame", getIsFrame())
-            .append("menuType", getMenuType())
-            .append("visible", getVisible())
-            .append("status ", getStatus())
-            .append("perms", getPerms())
-            .append("icon", getIcon())
-            .append("createBy", getCreateBy())
-            .append("createTime", getCreateTime())
-            .append("updateBy", getUpdateBy())
-            .append("updateTime", getUpdateTime())
-            .append("remark", getRemark())
-            .toString();
-    }
 }

--
Gitblit v1.9.3