(improvement)(semantic) Support dimension search by tag or not, compatible with historical data (#414)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2023-11-22 10:31:35 +08:00
committed by GitHub
parent 6763ea0f7b
commit 291c00749a
2 changed files with 11 additions and 7 deletions

View File

@@ -164,8 +164,11 @@
<if test="datasourceId != null">
and datasource_id = #{datasourceId}
</if>
<if test="isTag != null">
and is_tag = #{isTag}
<if test="isTag != null and isTag == 1">
and is_tag = 1
</if>
<if test="isTag != null and isTag == 0">
and (is_tag = 0 or is_tag is null)
</if>
</select>