From 357971f23b359ea441a1dfdad8fda7e095e38ec5 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 12 Oct 2022 17:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=A2=9E=E5=8A=A0=20site=20?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E6=A0=87=E8=AF=86=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/renren/modules/sys/dto/SysMenuDTO.java | 11 +++++++++++ .../io/renren/modules/sys/entity/SysMenuEntity.java | 4 ++++ .../src/main/resources/db/V6.4__menu_add_col.sql | 1 + 3 files changed, 16 insertions(+) create mode 100644 renren-admin/src/main/resources/db/V6.4__menu_add_col.sql 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