From 566aa3a3ab36226f0ce207538e30edf851e1af42 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Wed, 10 Jul 2024 16:45:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A0=87=E7=AD=BE=E7=AD=9B=E9=80=89=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=89=A7=E8=A1=8C=E6=89=B9=E9=87=8F=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1015589 --user=王旭 github#31979,测试用例根据标签进行筛选,选择筛选后的数据,全选所有页,点击移动到其他目录,页面提示保存成功,但实际并没有移动。 https://www.tapd.cn/55049933/s/1546217 --- .../main/java/io/metersphere/service/ServiceUtils.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/ServiceUtils.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/ServiceUtils.java index baab15e4d7..22a193cf9c 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/ServiceUtils.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/ServiceUtils.java @@ -494,8 +494,13 @@ public class ServiceUtils { Map tagsMap = (Map) request.getCombine().get("tags"); Object tagVal = tagsMap.get("value"); if (tagVal != null) { - List tagList = Arrays.asList(tagVal.toString().split(StringUtils.SPACE)); - tagsMap.put("value", tagList); + if (tagVal instanceof List) { + tagsMap.put("value", tagVal); + } else { + List tagList = Arrays.asList(tagVal.toString().split(StringUtils.SPACE)); + tagsMap.put("value", tagList); + } + } } }