diff --git a/config/db/V6.5__tb_fuse_add_col.sql b/config/db/V6.5__tb_fuse_add_col.sql new file mode 100644 index 00000000..20051adc --- /dev/null +++ b/config/db/V6.5__tb_fuse_add_col.sql @@ -0,0 +1,3 @@ +ALTER TABLE `tb_fuse` ADD COLUMN `infrastructure_count` int NULL DEFAULT 0 COMMENT '基础设施数量'; +ALTER TABLE `tb_fuse` ADD COLUMN `dataSource_count` int NULL DEFAULT 0 COMMENT '数据资源数量'; +ALTER TABLE `tb_fuse` ADD COLUMN `component_count` int NULL DEFAULT 0 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 a228c23a..7ff0b2ec 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 @@ -51,4 +51,13 @@ public class TbFuseDTO { private List fuseResourceList; @ApiModelProperty(value = "融合资源属性") private List fuseAttrList; + + @ApiModelProperty(value = "基础设施数量") + private Integer infrastructureCount; + @ApiModelProperty(value = "数据资源数量") + private Integer dataSourceCount; + @ApiModelProperty(value = "组件服务数量") + private Integer componentCount; + + } 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 346faa6d..26609e37 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 @@ -75,4 +75,8 @@ public class TbFuseEntity extends BaseEntity { */ @TableField(fill = FieldFill.INSERT_UPDATE) private Date updateDate; + + private Integer infrastructureCount; + private Integer dataSourceCount; + private Integer componentCount; } diff --git a/renren-admin/src/main/resources/db/V6.5__tb_fuse_add_col.sql b/renren-admin/src/main/resources/db/V6.5__tb_fuse_add_col.sql new file mode 100644 index 00000000..20051adc --- /dev/null +++ b/renren-admin/src/main/resources/db/V6.5__tb_fuse_add_col.sql @@ -0,0 +1,3 @@ +ALTER TABLE `tb_fuse` ADD COLUMN `infrastructure_count` int NULL DEFAULT 0 COMMENT '基础设施数量'; +ALTER TABLE `tb_fuse` ADD COLUMN `dataSource_count` int NULL DEFAULT 0 COMMENT '数据资源数量'; +ALTER TABLE `tb_fuse` ADD COLUMN `component_count` int NULL DEFAULT 0 COMMENT '组件服务数量'; \ No newline at end of file diff --git a/renren-admin/src/main/resources/mapper/fuse/TbFuseDao.xml b/renren-admin/src/main/resources/mapper/fuse/TbFuseDao.xml index 8427eed8..03038efb 100644 --- a/renren-admin/src/main/resources/mapper/fuse/TbFuseDao.xml +++ b/renren-admin/src/main/resources/mapper/fuse/TbFuseDao.xml @@ -9,18 +9,16 @@ - - - - - + + +