fix(接口定义): 修复回收站筛选执行结果失败的缺陷

--bug=1016224 --user=王孝刚 【接口测试】接口定义,回收站,case列表,搜索执行结果是未执行的case,搜索结果是空的
https://www.tapd.cn/55049933/s/1231976
This commit is contained in:
wxg0103 2022-08-24 13:50:58 +08:00 committed by 刘瑞斌
parent cd8c3be96e
commit a3a03459d0
2 changed files with 5 additions and 5 deletions

View File

@ -239,10 +239,7 @@ public class ApiTestCaseService {
if (updateUser != null) {
caseResult.setUpdateUser(updateUser.getName());
}
//检查用例的执行状态是否是null如果报告被删除 如果执行结果是null取记录最后执行状态的status字段
if (caseResult.getExecResult() == null && StringUtils.isNotEmpty(caseResult.getStatus()) && !StringUtils.equalsIgnoreCase(caseResult.getStatus(), "trash")) {
caseResult.setExecResult(caseResult.getStatus());
}
});
}
}

View File

@ -445,10 +445,13 @@
</foreach>
</when>
<when test="key=='execResult' or key=='exec_result'">
and t1.STATUS in
and (t3.STATUS in
<foreach collection="values" item="value" separator="," open="(" close=")">
(#{value})
</foreach>
<if test="values.contains(''.toString())">
or t3.STATUS is null
</if>)
</when>
</choose>
</if>