xuhy
2025-08-30 0e1238faa0537377afc9f6edfae7e99d8f438fb3
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java
@@ -5,6 +5,8 @@
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
@@ -62,10 +64,21 @@
    /** 菜单图标 */
    private String icon;
    /** 角色类型 1=平台 2=分公司 3=业务员 4=供应商 5=诊所端 6=仓库员 */
    @TableField(value = "role_type")
    private Integer roleType;
    /** 子菜单 */
    private List<SysMenu> children = new ArrayList<SysMenu>();
    public Integer getRoleType() {
        return roleType;
    }
    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }
    public Long getMenuId()
    {
        return menuId;