fix(测试计划): 计划功能用例展示状态有误

--bug=1041459 --user=宋昌昌 【测试计划】计划详情-用例详情-未执行用例右侧展示该用例的最后一次执行结果 https://www.tapd.cn/55049933/s/1535217
This commit is contained in:
song-cc-rock 2024-06-24 16:01:06 +08:00 committed by 刘瑞斌
parent c8ea534382
commit 501c5b44a5
1 changed files with 1 additions and 0 deletions

View File

@ -708,6 +708,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
}
TestPlanCaseDetailResponse response = new TestPlanCaseDetailResponse();
BeanUtils.copyBean(response, functionalCaseDetail);
response.setLastExecuteResult(planFunctionalCase.getLastExecResult());
TestPlanCaseExecuteHistoryExample testPlanCaseExecuteHistoryExample = new TestPlanCaseExecuteHistoryExample();
testPlanCaseExecuteHistoryExample.createCriteria().andCaseIdEqualTo(caseId).andTestPlanCaseIdEqualTo(id).andDeletedEqualTo(false);