diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index 7fc9709c9d..d3decacaa6 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -1415,9 +1415,9 @@ public class TestPlanService { List reportIds = cases.stream().map(TestPlanFailureApiDTO::getReportId).collect(Collectors.toList()); ApiDefinitionExecResultExample example = new ApiDefinitionExecResultExample(); example.createCriteria().andIdIn(reportIds); - List results = apiDefinitionExecResultMapper.selectByExampleWithBLOBs(example); + List results = apiDefinitionExecResultMapper.selectByExampleWithBLOBs(example); // 格式化数据结果 - Map resultMap = results.stream().collect(Collectors.toMap(ApiDefinitionExecResult::getId, item -> item, (k, v) -> k)); + Map resultMap = results.stream().collect(Collectors.toMap(ApiDefinitionExecResult::getId, item -> item, (k, v) -> k)); cases.forEach(item -> { if (resultMap.get(item.getReportId()) != null && StringUtils.isNotBlank(resultMap.get(item.getReportId()).getContent())) {