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 9cc50ea09b..ee8107d8c2 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 @@ -13,6 +13,12 @@ import java.util.List; public interface ExtApiScenarioStepMapper { List getStepIdsByScenarioId(@Param("scenarioId") String scenarioId); + /** + * 这个 sql 执行时,会清理一级缓存 + * 避免多次调用后数据异常 + * @param scenarioIds + * @return + */ List getStepDTOByScenarioIds(@Param("scenarioIds") List scenarioIds); 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 ce461ad616..41b2c6c85f 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 @@ -5,7 +5,7 @@ - select from api_scenario_step where scenario_id in