diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioStepMapper.java b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioStepMapper.java index b3471c6724..ef0129dc55 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioStepMapper.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioStepMapper.java @@ -15,7 +15,7 @@ public interface ExtApiScenarioStepMapper { List getStepDTOByScenarioIds(@Param("scenarioIds") List scenarioIds); - List getCsvStepByScenarioId(@Param("scenarioId") String scenarioId); + List getCsvStepByScenarioIds(@Param("scenarioIds") List scenarioId); /** * 查询有步骤详情的请求类型的步骤 diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioStepMapper.xml b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioStepMapper.xml index 7916b2dd04..4e0edf75e9 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioStepMapper.xml +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioStepMapper.xml @@ -13,10 +13,13 @@ #{scenarioId} - select - from api_scenario_csv_step where scenario_id = #{scenarioId} + from api_scenario_csv_step where scenario_id in + + #{scenarioId} +