diff --git a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java index 220e838675..3fa148dac5 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java @@ -1629,10 +1629,11 @@ public class ApiScenarioService { private List getExportResult(ApiScenarioBatchRequest request) { ServiceUtils.getSelectAllIds(request, request.getCondition(), (query) -> extApiScenarioMapper.selectIdsByQuery(query)); - ApiScenarioExample example = new ApiScenarioExample(); - example.createCriteria().andIdIn(request.getIds()); - List apiScenarioWithBLOBs = apiScenarioMapper.selectByExampleWithBLOBs(example); - return apiScenarioWithBLOBs; + List result = new ArrayList<>(); + request.getIds().forEach( item-> { + result.add(this.getNewApiScenario(item)); + }); + return result; } public ApiScenrioExportResult export(ApiScenarioBatchRequest request) {