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