diff --git a/renren-admin/src/main/java/io/renren/modules/sys/dto/SysMenuDTO.java b/renren-admin/src/main/java/io/renren/modules/sys/dto/SysMenuDTO.java index 49e62030..0e4304dc 100644 --- a/renren-admin/src/main/java/io/renren/modules/sys/dto/SysMenuDTO.java +++ b/renren-admin/src/main/java/io/renren/modules/sys/dto/SysMenuDTO.java @@ -62,6 +62,9 @@ public class SysMenuDTO extends TreeNode implements Serializable { @ApiModelProperty(value = "上级菜单名称") private String parentName; + @ApiModelProperty(value = "站点标识") + private Integer site; + @Override public Long getId() { return id; @@ -145,4 +148,12 @@ public class SysMenuDTO extends TreeNode implements Serializable { public void setParentName(String parentName) { this.parentName = parentName; } + + public Integer getSite() { + return site; + } + + public void setSite(Integer site) { + this.site = site; + } } \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/sys/entity/SysMenuEntity.java b/renren-admin/src/main/java/io/renren/modules/sys/entity/SysMenuEntity.java index 3384a732..2e645079 100644 --- a/renren-admin/src/main/java/io/renren/modules/sys/entity/SysMenuEntity.java +++ b/renren-admin/src/main/java/io/renren/modules/sys/entity/SysMenuEntity.java @@ -62,5 +62,9 @@ public class SysMenuEntity extends BaseEntity { */ @TableField(exist = false) private String parentName; + /** + * 站点标识 + */ + private Integer site; } \ No newline at end of file diff --git a/renren-admin/src/main/resources/db/V6.4__menu_add_col.sql b/renren-admin/src/main/resources/db/V6.4__menu_add_col.sql new file mode 100644 index 00000000..855b5b4c --- /dev/null +++ b/renren-admin/src/main/resources/db/V6.4__menu_add_col.sql @@ -0,0 +1 @@ +ALTER TABLE `sys_menu` ADD COLUMN `site` int NULL DEFAULT 0 COMMENT '站点标识'; \ No newline at end of file