From 6b029a307604eefad098d4178e19cee51c6bfdc9 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 23 Oct 2024 17:56:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E9=AB=98=E7=BA=A7=E6=90=9C=E7=B4=A2=E6=A0=87=E7=AD=BE=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E5=B0=8F=E4=BA=8E=E4=B8=B4=E7=95=8C=E5=80=BC=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1047918 --user=宋昌昌 【接口测试】定义-CASE/MOCK-高级搜索-标签 数量小于 0-搜索应该显示暂无数据 https://www.tapd.cn/55049933/s/1596794 --- .../java/io/metersphere/system/mapper/BaseMapper.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/BaseMapper.xml b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/BaseMapper.xml index 598c096411..b461bbd61d 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/BaseMapper.xml +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/BaseMapper.xml @@ -166,8 +166,13 @@ JSON_LENGTH(${column}) > #{condition.value} - ${column} is null or ${column} = '[]' or - JSON_LENGTH(${column}) < #{condition.value} + + 1=2 + + + ${column} is null or ${column} = '[]' or + JSON_LENGTH(${column}) < #{condition.value} + ${column} is null or ${column} = '[]'