From dbaa3297f040eb8758ca0ba1a412eece1f1254ec Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 21 Oct 2022 14:43:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E9=83=A8=E5=88=86=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=8D=95=E8=AF=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../definition/request/sampler/MsTCPSampler.java | 4 ++-- .../api/jmeter/ResourcePoolCalculation.java | 2 +- .../base/mapper/ext/ExtApiScenarioMapper.java | 2 +- .../base/mapper/ext/ExtApiScenarioMapper.xml | 2 +- .../ext/ExtApiScenarioReportDetailMapper.java | 2 +- .../ext/ExtApiScenarioReportDetailMapper.xml | 2 +- .../plan/ext/ExtTestPlanScenarioCaseMapper.java | 2 +- .../plan/ext/ExtTestPlanScenarioCaseMapper.xml | 2 +- .../automation/scenario/EditApiScenario.vue | 2 +- .../src/business/automation/scenario/Setting.js | 4 ++-- .../scenario/component/ApiComponent.vue | 8 +------- .../scenario/component/PluginComponent.vue | 2 +- .../scenario/maximize/MaximizeScenario.vue | 2 +- .../environment/model/EnvironmentModel.js | 4 ++-- .../home/components/card/ApiCaseCountCard.vue | 2 +- .../home/components/card/ScenarioCountCard.vue | 2 +- api-test/frontend/src/i18n/lang/en-US.js | 2 ++ api-test/frontend/src/i18n/lang/zh-CN.js | 2 ++ api-test/frontend/src/i18n/lang/zh-TW.js | 2 ++ .../environment/EnvironmentSSLConfig.vue | 16 ++++++++-------- .../frontend/src/model/EnvironmentModel.js | 4 ++-- .../environment/service/CommandService.java | 4 ++-- .../environment/ssl/KeyStoreConfig.java | 10 +++++----- 23 files changed, 42 insertions(+), 42 deletions(-) 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})