fix(接口定义): 修复回收站筛选执行结果失败的缺陷
--bug=1016224 --user=王孝刚 【接口测试】接口定义,回收站,case列表,搜索执行结果是未执行的case,搜索结果是空的 https://www.tapd.cn/55049933/s/1231976
This commit is contained in:
parent
cd8c3be96e
commit
a3a03459d0
|
@ -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());
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue