From 866bbd1faff31ca7b6430ad93b67ecd18e8b79a6 Mon Sep 17 00:00:00 2001 From: lizhicheng Date: Wed, 7 Sep 2022 15:42:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=9E=8D=E5=90=88=E6=9C=8D=E5=8A=A1=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=B3=E8=AF=B7=E9=87=8F=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/db/V5.6__fuse_add_col.sql | 3 +++ .../main/java/io/renren/modules/fuse/dto/TbFuseDTO.java | 4 ++++ .../java/io/renren/modules/fuse/entity/TbFuseEntity.java | 8 ++++++++ .../modules/fuse/service/impl/TbFuseServiceImpl.java | 2 ++ renren-admin/src/main/resources/db/V5.6__fuse_add_col.sql | 3 +++ 5 files changed, 20 insertions(+) create mode 100644 config/db/V5.6__fuse_add_col.sql create mode 100644 renren-admin/src/main/resources/db/V5.6__fuse_add_col.sql diff --git a/config/db/V5.6__fuse_add_col.sql b/config/db/V5.6__fuse_add_col.sql new file mode 100644 index 00000000..e6cab05b --- /dev/null +++ b/config/db/V5.6__fuse_add_col.sql @@ -0,0 +1,3 @@ +ALTER TABLE `tb_fuse` + ADD COLUMN `visits` bigint COMMENT '访问量', + ADD COLUMN `apply_count` bigint COMMENT '申请量'; \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/fuse/dto/TbFuseDTO.java b/renren-admin/src/main/java/io/renren/modules/fuse/dto/TbFuseDTO.java index 66f23296..186cb787 100644 --- a/renren-admin/src/main/java/io/renren/modules/fuse/dto/TbFuseDTO.java +++ b/renren-admin/src/main/java/io/renren/modules/fuse/dto/TbFuseDTO.java @@ -27,6 +27,10 @@ public class TbFuseDTO { private String type; @ApiModelProperty(value = "应用领域") private String applicationArea; + @ApiModelProperty(value = "浏览量") + private Long visits; + @ApiModelProperty(value = "申请量") + private Long applyCount; @ApiModelProperty(value = "所属部门") private Long deptId; @ApiModelProperty(value = "创建人") diff --git a/renren-admin/src/main/java/io/renren/modules/fuse/entity/TbFuseEntity.java b/renren-admin/src/main/java/io/renren/modules/fuse/entity/TbFuseEntity.java index beea7fc0..f9df827c 100644 --- a/renren-admin/src/main/java/io/renren/modules/fuse/entity/TbFuseEntity.java +++ b/renren-admin/src/main/java/io/renren/modules/fuse/entity/TbFuseEntity.java @@ -38,6 +38,14 @@ public class TbFuseEntity extends BaseEntity { * 应用领域 */ private String applicationArea; + /** + * 浏览量 + */ + private Long visits; + /** + * 申请量 + */ + private Long applyCount; /** * 所属部门 */ diff --git a/renren-admin/src/main/java/io/renren/modules/fuse/service/impl/TbFuseServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/fuse/service/impl/TbFuseServiceImpl.java index a1cd5e16..d8423b34 100644 --- a/renren-admin/src/main/java/io/renren/modules/fuse/service/impl/TbFuseServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/fuse/service/impl/TbFuseServiceImpl.java @@ -254,6 +254,8 @@ public class TbFuseServiceImpl extends CrudServiceImpl { fuseResourceDTO.setId(IdWorker.getId(fuseResourceDTO)); diff --git a/renren-admin/src/main/resources/db/V5.6__fuse_add_col.sql b/renren-admin/src/main/resources/db/V5.6__fuse_add_col.sql new file mode 100644 index 00000000..e6cab05b --- /dev/null +++ b/renren-admin/src/main/resources/db/V5.6__fuse_add_col.sql @@ -0,0 +1,3 @@ +ALTER TABLE `tb_fuse` + ADD COLUMN `visits` bigint COMMENT '访问量', + ADD COLUMN `apply_count` bigint COMMENT '申请量'; \ No newline at end of file