1.融合服务新增各种资源数量字段

This commit is contained in:
dinggang 2022-10-13 11:02:37 +08:00
parent 1e8d781ba5
commit 4f37523519
6 changed files with 25 additions and 7 deletions

View File

@ -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 '组件服务数量';

View File

@ -51,4 +51,13 @@ public class TbFuseDTO {
private List<TbFuseResourceDTO> fuseResourceList; private List<TbFuseResourceDTO> fuseResourceList;
@ApiModelProperty(value = "融合资源属性") @ApiModelProperty(value = "融合资源属性")
private List<TbFuseAttrDTO> fuseAttrList; private List<TbFuseAttrDTO> fuseAttrList;
@ApiModelProperty(value = "基础设施数量")
private Integer infrastructureCount;
@ApiModelProperty(value = "数据资源数量")
private Integer dataSourceCount;
@ApiModelProperty(value = "组件服务数量")
private Integer componentCount;
} }

View File

@ -75,4 +75,8 @@ public class TbFuseEntity extends BaseEntity {
*/ */
@TableField(fill = FieldFill.INSERT_UPDATE) @TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate; private Date updateDate;
private Integer infrastructureCount;
private Integer dataSourceCount;
private Integer componentCount;
} }

View File

@ -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 '组件服务数量';

View File

@ -9,18 +9,16 @@
<result property="description" column="description"/> <result property="description" column="description"/>
<result property="applicationArea" column="application_area"/> <result property="applicationArea" column="application_area"/>
<result property="deptId" column="dept_id"/> <result property="deptId" column="dept_id"/>
<result property="deptUser" column="dept_user"/>
<result property="mobile" column="mobile"/>
<result property="sceneUrl" column="scene_url"/> <result property="sceneUrl" column="scene_url"/>
<result property="provider" column="provider"/>
<result property="providerUser" column="provider_user"/>
<result property="providerMobile" column="provider_mobile"/>
<result property="creator" column="creator"/> <result property="creator" column="creator"/>
<result property="createDate" column="create_date"/> <result property="createDate" column="create_date"/>
<result property="updater" column="updater"/> <result property="updater" column="updater"/>
<result property="updateDate" column="update_date"/> <result property="updateDate" column="update_date"/>
<result property="isCollect" column="isCollect"/> <result property="isCollect" column="isCollect"/>
<result property="collectCount" column="collectCount"/> <result property="collectCount" column="collectCount"/>
<result property="infrastructureCount" column="infrastructure_count"/>
<result property="dataSourceCount" column="dataSource_count"/>
<result property="componentCount" column="component_count"/>
</resultMap> </resultMap>
<select id="getFuseDTOList" resultMap="fuseDTO"> <select id="getFuseDTOList" resultMap="fuseDTO">

View File

@ -722,10 +722,11 @@
</select> </select>
<select id="selectDeptCount" resultType="java.lang.Integer"> <select id="selectDeptCount" resultType="java.lang.Integer">
SELECT <!-- SELECT
COUNT( 1 ) COUNT( 1 )
FROM FROM
( SELECT DISTINCT dept_id FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 AND dept_id IS NOT NULL ) temp ( SELECT DISTINCT dept_id FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 AND dept_id IS NOT NULL ) temp -->
SELECT COUNT(id) FROM sys_dept WHERE name != '访客部门'
</select> </select>
<select id="selectDeptTypeCount" resultType="java.util.Map"> <select id="selectDeptTypeCount" resultType="java.util.Map">