fix(接口测试): 高级搜索标签数量小于临界值搜索问题

--bug=1047918 --user=宋昌昌 【接口测试】定义-CASE/MOCK-高级搜索-标签 数量小于 0-搜索应该显示暂无数据 https://www.tapd.cn/55049933/s/1596794
This commit is contained in:
song-cc-rock 2024-10-23 17:56:55 +08:00 committed by Craftsman
parent d360e3e912
commit 6b029a3076
1 changed files with 7 additions and 2 deletions

View File

@ -166,8 +166,13 @@
JSON_LENGTH(${column}) > #{condition.value} JSON_LENGTH(${column}) > #{condition.value}
</when> </when>
<when test="${condition}.operator == 'COUNT_LT'"> <when test="${condition}.operator == 'COUNT_LT'">
<if test="${condition}.value == 0">
1=2
</if>
<if test="${condition}.value != 0">
${column} is null or ${column} = '[]' or ${column} is null or ${column} = '[]' or
JSON_LENGTH(${column}) &lt; #{condition.value} JSON_LENGTH(${column}) &lt; #{condition.value}
</if>
</when> </when>
<when test="${condition}.operator == 'EMPTY'"> <when test="${condition}.operator == 'EMPTY'">
${column} is null or ${column} = '[]' ${column} is null or ${column} = '[]'