fix(功能用例、接口测试): #1006703 回复接口用例失败、excel导入测试用例标签解析错误

--bug=1006703 --user=宋天阳 【github#6196】恢复接口用例失败
https://www.tapd.cn/55049933/s/1048848
This commit is contained in:
song-tianyang 2021-09-21 13:19:37 +08:00 committed by 刘瑞斌
parent 07bbd27845
commit 4cfc697abb
2 changed files with 3 additions and 3 deletions

View File

@ -586,7 +586,7 @@
update api_test_case
set original_status=status,
status = 'Trash',delete_time = #{deleteTime},delete_user_id = #{deleteUserId}
where id IN
where status != 'Trash' AND id IN
<foreach collection="ids" item="v" separator="," open="(" close=")">
#{v}
</foreach>

View File

@ -486,8 +486,8 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener<Map<Integ
String tags = data.getTags();
try {
if (StringUtils.isNotBlank(tags)) {
JSONArray.parse(tags);
return tags;
JSONArray array = JSONArray.parseArray(tags);
return array.toJSONString();
}
return "[]";
} catch (Exception e) {