feat(api): add new SQL query for CI by no attribute in

This commit is contained in:
thexqn 2024-12-18 12:47:44 +08:00
parent 19fcde4a50
commit 2ea0b42be4
1 changed files with 9 additions and 0 deletions

View File

@ -107,3 +107,12 @@ FROM
WHERE c_value_index_datetime.value LIKE "{0}") AS {1}
GROUP BY {1}.ci_id
"""
QUERY_CI_BY_NO_ATTR_IN = """
SELECT *
FROM
(SELECT c_value_index_texts.ci_id
FROM c_value_index_texts
WHERE c_value_index_texts.value in ({0})) AS {1}
GROUP BY {1}.ci_id
"""