1.融合服务新增各种资源数量字段
This commit is contained in:
parent
1e8d781ba5
commit
4f37523519
|
@ -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 '组件服务数量';
|
|
@ -51,4 +51,13 @@ public class TbFuseDTO {
|
|||
private List<TbFuseResourceDTO> fuseResourceList;
|
||||
@ApiModelProperty(value = "融合资源属性")
|
||||
private List<TbFuseAttrDTO> fuseAttrList;
|
||||
|
||||
@ApiModelProperty(value = "基础设施数量")
|
||||
private Integer infrastructureCount;
|
||||
@ApiModelProperty(value = "数据资源数量")
|
||||
private Integer dataSourceCount;
|
||||
@ApiModelProperty(value = "组件服务数量")
|
||||
private Integer componentCount;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 '组件服务数量';
|
|
@ -9,18 +9,16 @@
|
|||
<result property="description" column="description"/>
|
||||
<result property="applicationArea" column="application_area"/>
|
||||
<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="provider" column="provider"/>
|
||||
<result property="providerUser" column="provider_user"/>
|
||||
<result property="providerMobile" column="provider_mobile"/>
|
||||
<result property="creator" column="creator"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="updater" column="updater"/>
|
||||
<result property="updateDate" column="update_date"/>
|
||||
<result property="isCollect" column="isCollect"/>
|
||||
<result property="collectCount" column="collectCount"/>
|
||||
<result property="infrastructureCount" column="infrastructure_count"/>
|
||||
<result property="dataSourceCount" column="dataSource_count"/>
|
||||
<result property="componentCount" column="component_count"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getFuseDTOList" resultMap="fuseDTO">
|
||||
|
|
|
@ -722,10 +722,11 @@
|
|||
</select>
|
||||
|
||||
<select id="selectDeptCount" resultType="java.lang.Integer">
|
||||
SELECT
|
||||
<!-- SELECT
|
||||
COUNT( 1 )
|
||||
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 id="selectDeptTypeCount" resultType="java.util.Map">
|
||||
|
|
Loading…
Reference in New Issue