diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsTCPSampler.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsTCPSampler.java index c9c555173e..76d2d5502c 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsTCPSampler.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsTCPSampler.java @@ -322,8 +322,8 @@ public class MsTCPSampler extends MsTestElement { } private String formatMockValue(String value) { - String patten = ">@[^>@]+@[^>@]+ selectByIds(@Param("ids") String ids, @Param("oderId") String oderId); + List selectByIds(@Param("ids") String ids, @Param("order") String order); List selectReference(@Param("request") ApiScenarioRequest request); diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml index 8ed1312104..3a869aa12c 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml @@ -442,7 +442,7 @@ select * from api_scenario where id in (${ids}) - ORDER BY FIND_IN_SET(id, ${oderId}) + ORDER BY FIND_IN_SET(id, ${order}) - select t.* from api_scenario_report_detail t where t.report_id in (${ids}) ORDER BY FIND_IN_SET(t.report_id,${oderId}) + select t.* from api_scenario_report_detail t where t.report_id in (${ids}) ORDER BY FIND_IN_SET(t.report_id,${order}) \ No newline at end of file diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/plan/ext/ExtTestPlanScenarioCaseMapper.java b/api-test/backend/src/main/java/io/metersphere/base/mapper/plan/ext/ExtTestPlanScenarioCaseMapper.java index dafb7c57cf..205fa40b86 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/plan/ext/ExtTestPlanScenarioCaseMapper.java +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/plan/ext/ExtTestPlanScenarioCaseMapper.java @@ -25,7 +25,7 @@ public interface ExtTestPlanScenarioCaseMapper { List selectIds(@Param("request")TestPlanScenarioRequest request); - List selectByIds(@Param("ids")String ids ,@Param("oderId")String oderId ); + List selectByIds(@Param("ids")String ids ,@Param("order")String order ); List selectLegalDataByTestPlanId(String planId); diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/plan/ext/ExtTestPlanScenarioCaseMapper.xml b/api-test/backend/src/main/java/io/metersphere/base/mapper/plan/ext/ExtTestPlanScenarioCaseMapper.xml index 3970772451..a999434a37 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/plan/ext/ExtTestPlanScenarioCaseMapper.xml +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/plan/ext/ExtTestPlanScenarioCaseMapper.xml @@ -136,7 +136,7 @@ select t.* from test_plan_api_scenario t where t.id in (${ids}) - ORDER BY FIND_IN_SET(t.id, ${oderId}) + ORDER BY FIND_IN_SET(t.id, ${order})