Compare commits
No commits in common. "fbeadb6ba3d7a6a61c54ae29ec5fd96f60498f94" and "5dc4b1e4827c4dfe863422f6877ccafee43518dc" have entirely different histories.
fbeadb6ba3
...
5dc4b1e482
|
@ -58,10 +58,8 @@ public class TbFuseDTO {
|
|||
private Integer dataSourceCount;
|
||||
@ApiModelProperty(value = "组件服务数量")
|
||||
private Integer componentCount;
|
||||
@ApiModelProperty(value = "赋能场景类型:0市级,1基层")
|
||||
@ApiModelProperty(value = "组件服务数量")
|
||||
private Integer district;
|
||||
@ApiModelProperty(value = "基层赋能场景所属地区")
|
||||
private String area;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -80,5 +80,5 @@ public class TbFuseEntity extends BaseEntity {
|
|||
private Integer dataSourceCount;
|
||||
private Integer componentCount;
|
||||
private Integer district;
|
||||
private String area;
|
||||
|
||||
}
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
ALTER TABLE tb_fuse ADD COLUMN `district` int(2) DEFAULT 0 COMMENT '赋能场景类型:0市级、1基层场景',
|
||||
ADD COLUMN `area` varchar(128) NULL COMMENT '基层赋能场景所属地区';
|
||||
ALTER TABLE tb_fuse ADD COLUMN `district` int(2) DEFAULT 0 COMMENT '赋能场景类型:0市级、1基层场景';
|
|
@ -20,7 +20,6 @@
|
|||
<result property="dataSourceCount" column="data_source_count"/>
|
||||
<result property="componentCount" column="component_count"/>
|
||||
<result property="district" column="district"/>
|
||||
<result property="area" column="area"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="getFuseDTOList" resultMap="fuseDTO">
|
||||
|
|
|
@ -1884,20 +1884,20 @@
|
|||
FROM
|
||||
(SELECT IF(d.type='组件服务', A.attr_value, d.type) AS type, d.id, d.del_flag, d.dept_id, d.create_date FROM
|
||||
tb_data_resource d LEFT JOIN tb_data_attr a ON d.id=a.data_resource_id AND a.attr_type='组件类型' AND
|
||||
a.del_flag=0 WHERE d.type IN ('应用资源', '组件服务') AND d.del_flag NOT IN (1, 5)) tdr,
|
||||
a.del_flag=0 WHERE d.type IN ('应用资源', '组件服务') AND d.del_flag = 0) tdr,
|
||||
sys_dept sd
|
||||
WHERE
|
||||
1 = 1
|
||||
AND tdr.dept_id = sd.id
|
||||
<choose>
|
||||
<when test="approveStatus != null and approveStatus == '通过'">
|
||||
AND tdr.del_flag = 0
|
||||
AND tdr.del_flag=0
|
||||
</when>
|
||||
<when test="approveStatus != null and approveStatus == '审核中'">
|
||||
AND tdr.del_flag in (2, 3, 4)
|
||||
</when>
|
||||
<when test="approveStatus != null and approveStatus == '不通过'">
|
||||
AND tdr.del_flag = 6
|
||||
AND tdr.del_flag=6
|
||||
</when>
|
||||
<otherwise>
|
||||
AND tdr.del_flag in (0, 2, 3, 4, 6)
|
||||
|
@ -1926,7 +1926,7 @@
|
|||
tdr.name AS resourceName,
|
||||
tdr.type,
|
||||
DATE_FORMAT(tdr.create_date,'%Y-%m-%d %T') AS createDate,
|
||||
CASE WHEN tdr.del_flag = 0 THEN '通过' WHEN tdr.del_flag = 6 THEN '不通过' ELSE '审核中' END AS approveStatus,
|
||||
CASE WHEN (tdr.del_flag = 0 OR tdr.del_flag = 5) THEN '通过' WHEN tdr.del_flag = 6 THEN '不通过' ELSE '审核中' END AS approveStatus,
|
||||
trma.instance_id AS applyNumber
|
||||
FROM
|
||||
(SELECT
|
||||
|
@ -1938,10 +1938,7 @@
|
|||
d.name
|
||||
FROM tb_data_resource d
|
||||
LEFT JOIN tb_data_attr a ON d.id = a.data_resource_id AND a.attr_type = '组件类型' AND a.del_flag = 0
|
||||
WHERE
|
||||
1 = 1
|
||||
AND d.del_flag NOT IN (1, 5)
|
||||
AND d.type IN ('应用资源','组件服务')
|
||||
WHERE d.type IN ('应用资源','组件服务')
|
||||
) tdr
|
||||
LEFT JOIN t_resource_mount_apply trma on tdr.id = trma.resource_id,
|
||||
sys_dept sd
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</select>
|
||||
|
||||
<select id="getListByLevel" resultType="io.renren.modules.sys.entity.SysRegionEntity">
|
||||
select id, pid, name from sys_region where tree_level = #{value} order by sort
|
||||
select id, pid, name from sys_region where level = #{value} order by sort
|
||||
</select>
|
||||
|
||||
<select id="getById" resultType="io.renren.modules.sys.entity.SysRegionEntity">
|
||||
|
|
Loading…
Reference in New Issue