#
luxiaotao1123
2024-02-16 f386cde7f06d6148595b9c07b5bb37433c9c5b87
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,    // 上级菜单名