菜单增加 site 站点标识 字段

This commit is contained in:
wangliwen 2022-10-12 17:11:04 +08:00
parent da4fab24bc
commit 357971f23b
3 changed files with 16 additions and 0 deletions

View File

@ -62,6 +62,9 @@ public class SysMenuDTO extends TreeNode<SysMenuDTO> implements Serializable {
@ApiModelProperty(value = "上级菜单名称") @ApiModelProperty(value = "上级菜单名称")
private String parentName; private String parentName;
@ApiModelProperty(value = "站点标识")
private Integer site;
@Override @Override
public Long getId() { public Long getId() {
return id; return id;
@ -145,4 +148,12 @@ public class SysMenuDTO extends TreeNode<SysMenuDTO> implements Serializable {
public void setParentName(String parentName) { public void setParentName(String parentName) {
this.parentName = parentName; this.parentName = parentName;
} }
public Integer getSite() {
return site;
}
public void setSite(Integer site) {
this.site = site;
}
} }

View File

@ -62,5 +62,9 @@ public class SysMenuEntity extends BaseEntity {
*/ */
@TableField(exist = false) @TableField(exist = false)
private String parentName; private String parentName;
/**
* 站点标识
*/
private Integer site;
} }

View File

@ -0,0 +1 @@
ALTER TABLE `sys_menu` ADD COLUMN `site` int NULL DEFAULT 0 COMMENT '站点标识';