"git@gitlab.ruzhoukj.com:wujipeng/ops.git" did not exist on "6b100d2f6aabeb3abea019e8457c4914d50f0264"
Commit 42f628f3 authored by wujipeng's avatar wujipeng
Browse files

增加元数据字段

parent 2aa7da43
...@@ -25,7 +25,7 @@ public class MetaDataEntity { ...@@ -25,7 +25,7 @@ public class MetaDataEntity {
@ApiModelProperty(value = "值") @ApiModelProperty(value = "值")
private Double value; private Double value;
@ApiModelProperty(value = "复合") @ApiModelProperty(value = "是否复合")
private Boolean reunite; private Boolean reunite;
@ApiModelProperty(value = "公式") @ApiModelProperty(value = "公式")
...@@ -33,4 +33,10 @@ public class MetaDataEntity { ...@@ -33,4 +33,10 @@ public class MetaDataEntity {
@ApiModelProperty(value = "属性") @ApiModelProperty(value = "属性")
private String attribute; private String attribute;
@ApiModelProperty(value = "是否隐藏")
private Boolean hidden;
@ApiModelProperty(value = "版本")
private String version;
} }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
FROM meta_data m FROM meta_data m
INNER JOIN downstream d ON m.formula LIKE CONCAT('%{', d.id, '}%') INNER JOIN downstream d ON m.formula LIKE CONCAT('%{', d.id, '}%')
) )
SELECT distinct * FROM downstream; SELECT distinct * FROM downstream where hidden = 0;
</select> </select>
<select id="getDownDataById" resultType="com.ruzhoukj.integration.pojo.vo.MetaDataVO"> <select id="getDownDataById" resultType="com.ruzhoukj.integration.pojo.vo.MetaDataVO">
WITH RECURSIVE downstream AS ( WITH RECURSIVE downstream AS (
...@@ -43,6 +43,6 @@ ...@@ -43,6 +43,6 @@
FROM meta_data m FROM meta_data m
INNER JOIN downstream d ON d.formula LIKE CONCAT('%{', m.id, '}%') INNER JOIN downstream d ON d.formula LIKE CONCAT('%{', m.id, '}%')
) )
SELECT * FROM downstream WHERE id != #{id} SELECT * FROM downstream WHERE id != #{id} and hidden = 0
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment