#
luxiaotao1123
2024-02-13 cb2a256130549f45a3ffd3464b84f1cf2f2589c9
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/entity/Menu.java
@@ -1,6 +1,7 @@
package com.zy.asrs.wcs.sys.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zy.asrs.framework.common.Cools;
@@ -15,6 +16,7 @@
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Data
@TableName("sys_menu")
@@ -67,6 +69,12 @@
     */
    @ApiModelProperty(value= "路由地址")
    private String route;
    /**
     * 页面组件
     */
    @ApiModelProperty(value= "页面组件")
    private String component;
    /**
     * 简述
@@ -160,15 +168,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 +198,7 @@
        this.memo = memo;
    }
//    Menu menu = new Menu(
    //    Menu menu = new Menu(
//            null,    // 名称[非空]
//            null,    // 上级菜单
//            null,    // 上级菜单名