fix(功能用例、接口测试): #1006703 回复接口用例失败、excel导入测试用例标签解析错误
--bug=1006703 --user=宋天阳 【github#6196】恢复接口用例失败 https://www.tapd.cn/55049933/s/1048848
This commit is contained in:
parent
07bbd27845
commit
4cfc697abb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue