fix(测试跟踪): 修复标签筛选后,执行批量操作不生效问题

--story=1015589 --user=王旭 github#31979,测试用例根据标签进行筛选,选择筛选后的数据,全选所有页,点击移动到其他目录,页面提示保存成功,但实际并没有移动。 https://www.tapd.cn/55049933/s/1546217
This commit is contained in:
WangXu10 2024-07-10 16:45:35 +08:00 committed by 刘瑞斌
parent 7c9fec1858
commit 566aa3a3ab
1 changed files with 7 additions and 2 deletions

View File

@ -494,9 +494,14 @@ public class ServiceUtils {
Map<String, Object> tagsMap = (Map<String, Object>) request.getCombine().get("tags"); Map<String, Object> tagsMap = (Map<String, Object>) request.getCombine().get("tags");
Object tagVal = tagsMap.get("value"); Object tagVal = tagsMap.get("value");
if (tagVal != null) { if (tagVal != null) {
if (tagVal instanceof List) {
tagsMap.put("value", tagVal);
} else {
List<String> tagList = Arrays.asList(tagVal.toString().split(StringUtils.SPACE)); List<String> tagList = Arrays.asList(tagVal.toString().split(StringUtils.SPACE));
tagsMap.put("value", tagList); tagsMap.put("value", tagList);
} }
}
} }
} }