From f718ced7e835487e093f482e8a2cd8898759d6be Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 21 Oct 2022 17:46:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/commons/utils/CronUtils.java | 2 +- .../xpack/track/dto/PlatformStatusDTO.java | 2 +- .../base/mapper/ext/ExtTestAnalysisMapper.xml | 2 +- .../ExtTestCaseReviewScenarioCaseMapper.java | 5 -- .../ExtTestCaseReviewScenarioCaseMapper.xml | 72 ------------------- .../base/mapper/ext/ExtTestPlanMapper.java | 2 +- .../base/mapper/ext/ExtTestPlanMapper.xml | 6 +- .../mapper/ext/ExtTestPlanTestCaseMapper.java | 4 +- .../controller/TestCaseNodeController.java | 2 +- .../controller/TestPlanController.java | 12 ++-- .../controller/TestPlanReportController.java | 2 +- .../TestPlanTestCaseController.java | 8 +-- .../controller/TrackController.java | 4 +- ...{BugStatustics.java => BugStatistics.java} | 2 +- .../AddTestPlanRequest.java | 2 +- .../{reuest => request}/BatchCondition.java | 4 +- .../QueryTestPlanRequest.java | 2 +- .../ScheduleInfoRequest.java | 2 +- .../TestPlanReportSaveRequest.java | 2 +- .../api/ApiPlanReportRequest.java | 2 +- .../api/RunScenarioRequest.java | 4 +- .../SchedulePlanScenarioExecuteRequest.java | 2 +- .../api/TestPlanRunRequest.java | 4 +- .../function/PlanCaseRelevanceRequest.java | 2 +- .../function/QueryTestPlanCaseRequest.java | 2 +- .../function/TestCaseRelevanceRequest.java | 2 +- .../function/TestPlanCaseBatchRequest.java | 2 +- .../TestPlanFuncCaseBatchRequest.java | 2 +- .../function/TestPlanFuncCaseConditions.java | 2 +- .../function/TestPlanFuncCaseEditRequest.java | 2 +- .../performance/LoadCaseReportRequest.java | 2 +- .../performance/LoadCaseRequest.java | 2 +- .../performance/LoadPlanReportDTO.java | 2 +- .../PlanPerformanceExecRequest.java | 2 +- .../ui/RunUiScenarioRequest.java | 4 +- .../plan/service/TestPlanProjectService.java | 2 +- .../plan/service/TestPlanReportService.java | 8 +-- .../plan/service/TestPlanService.java | 30 ++++---- .../plan/service/TestPlanTestCaseService.java | 2 +- .../remote/api/PlanApiAutomationService.java | 2 +- .../api/PlanTestPlanScenarioCaseService.java | 2 +- .../remote/performance/PerfExecService.java | 2 +- .../PlanTestPlanLoadCaseService.java | 6 +- .../ui/PlanTestPlanUiScenarioCaseService.java | 2 +- .../remote/ui/PlanUiAutomationService.java | 2 +- .../service/TestCaseNodeService.java | 2 +- .../metersphere/service/TestCaseService.java | 22 +++--- .../io/metersphere/service/TrackService.java | 14 ++-- .../issue/domain/zentao/GetUserResponse.java | 35 --------- .../service/issue/platform/JiraPlatform.java | 2 +- .../service/issue/platform/TapdPlatform.java | 6 +- .../issue/platform/ZentaoPlatform.java | 4 +- .../io/metersphere/xmind/XmindCaseParser.java | 22 +++--- .../business/case/components/TestCaseEdit.vue | 8 +-- .../src/business/issue/IssueEditDetail.vue | 2 +- .../src/business/plan/env/EnvGroup.vue | 6 +- .../business/plan/env/EnvGroupWithOption.vue | 6 +- .../report/detail/TestPlanApiReport.vue | 6 +- .../business/review/commom/ReviewComment.vue | 1 - 59 files changed, 128 insertions(+), 241 deletions(-) rename test-track/backend/src/main/java/io/metersphere/dto/{BugStatustics.java => BugStatistics.java} (90%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/AddTestPlanRequest.java (89%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/BatchCondition.java (79%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/QueryTestPlanRequest.java (96%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/ScheduleInfoRequest.java (91%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/TestPlanReportSaveRequest.java (99%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/api/ApiPlanReportRequest.java (87%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/api/RunScenarioRequest.java (90%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/api/SchedulePlanScenarioExecuteRequest.java (95%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/api/TestPlanRunRequest.java (90%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/function/PlanCaseRelevanceRequest.java (93%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/function/QueryTestPlanCaseRequest.java (93%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/function/TestCaseRelevanceRequest.java (82%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/function/TestPlanCaseBatchRequest.java (87%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/function/TestPlanFuncCaseBatchRequest.java (86%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/function/TestPlanFuncCaseConditions.java (87%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/function/TestPlanFuncCaseEditRequest.java (83%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/performance/LoadCaseReportRequest.java (77%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/performance/LoadCaseRequest.java (93%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/performance/LoadPlanReportDTO.java (84%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/performance/PlanPerformanceExecRequest.java (86%) rename test-track/backend/src/main/java/io/metersphere/plan/{reuest => request}/ui/RunUiScenarioRequest.java (74%) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/utils/CronUtils.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/utils/CronUtils.java index a1cda8e843..59050c71a7 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/utils/CronUtils.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/utils/CronUtils.java @@ -24,7 +24,7 @@ public class CronUtils { if (!CronExpression.isValidExpression(cron)) { throw new RuntimeException("cron :" + cron + "表达式解析错误"); } - return TriggerBuilder.newTrigger().withIdentity("Caclulate Date").withSchedule(CronScheduleBuilder.cronSchedule(cron)).build(); + return TriggerBuilder.newTrigger().withIdentity("Calculate Date").withSchedule(CronScheduleBuilder.cronSchedule(cron)).build(); } /** diff --git a/framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/dto/PlatformStatusDTO.java b/framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/dto/PlatformStatusDTO.java index de3b29b4bc..1ca74f56de 100644 --- a/framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/dto/PlatformStatusDTO.java +++ b/framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/dto/PlatformStatusDTO.java @@ -7,5 +7,5 @@ import lombok.Setter; @Getter public class PlatformStatusDTO { protected String value; - protected String lable; + protected String label; } diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestAnalysisMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestAnalysisMapper.xml index f1a5779462..53d3ad2c72 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestAnalysisMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestAnalysisMapper.xml @@ -110,4 +110,4 @@ - \ No newline at end of file + diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewScenarioCaseMapper.java b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewScenarioCaseMapper.java index 0fc5722b9b..c751d81322 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewScenarioCaseMapper.java +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewScenarioCaseMapper.java @@ -1,8 +1,6 @@ package io.metersphere.base.mapper.ext; -import io.metersphere.base.domain.ApiScenarioWithBLOBs; import io.metersphere.base.domain.TestCaseReviewScenario; -//import io.metersphere.reuqest.TestPlanScenarioRequest; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -10,9 +8,6 @@ import java.util.List; public interface ExtTestCaseReviewScenarioCaseMapper { void insertIfNotExists(@Param("request") TestCaseReviewScenario request); - // todo check -// List list(@Param("request") TestPlanScenarioRequest request); - List getExecResultByReviewId(String reviewId); List getIdsByReviewId(String reviewId); diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewScenarioCaseMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewScenarioCaseMapper.xml index 50f4f2b397..9785e661ce 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewScenarioCaseMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewScenarioCaseMapper.xml @@ -13,78 +13,6 @@ ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + parameterType="io.metersphere.plan.request.QueryTestPlanRequest"> select DISTINCT test_plan.*, project.name as projectName,schedule.id as scheduleId, (select name from user where user.id = test_plan.creator) as createUser, IF(schedule.enable = true,true,false) as scheduleOpen @@ -264,7 +264,7 @@