Commit 4cfc697a authored by song-tianyang's avatar song-tianyang Committed by 刘瑞斌
Browse files

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

--bug=1006703 --user=宋天阳 【github#6196】恢复接口用例失败
https://www.tapd.cn/55049933/s/1048848
parent 07bbd278
Showing with 3 additions and 3 deletions
+3 -3
......@@ -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>
......
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment