diff --git a/performance-test/backend/src/main/java/io/metersphere/plan/controller/PerfExecController.java b/performance-test/backend/src/main/java/io/metersphere/plan/controller/PerfExecController.java index eaad7b1347..9a2e5fbada 100644 --- a/performance-test/backend/src/main/java/io/metersphere/plan/controller/PerfExecController.java +++ b/performance-test/backend/src/main/java/io/metersphere/plan/controller/PerfExecController.java @@ -1,6 +1,6 @@ package io.metersphere.plan.controller; -import io.metersphere.plan.dto.reqeust.PlanPerformanceExecRequest; +import io.metersphere.plan.dto.request.PlanPerformanceExecRequest; import io.metersphere.plan.service.PerfExecService; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; diff --git a/performance-test/backend/src/main/java/io/metersphere/plan/dto/reqeust/PlanPerformanceExecRequest.java b/performance-test/backend/src/main/java/io/metersphere/plan/dto/request/PlanPerformanceExecRequest.java similarity index 88% rename from performance-test/backend/src/main/java/io/metersphere/plan/dto/reqeust/PlanPerformanceExecRequest.java rename to performance-test/backend/src/main/java/io/metersphere/plan/dto/request/PlanPerformanceExecRequest.java index eab246e594..88758d938e 100644 --- a/performance-test/backend/src/main/java/io/metersphere/plan/dto/reqeust/PlanPerformanceExecRequest.java +++ b/performance-test/backend/src/main/java/io/metersphere/plan/dto/request/PlanPerformanceExecRequest.java @@ -1,4 +1,4 @@ -package io.metersphere.plan.dto.reqeust; +package io.metersphere.plan.dto.request; import io.metersphere.dto.RunModeConfigDTO; diff --git a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java index 9bf0b00a21..d267d16a19 100644 --- a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java +++ b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java @@ -167,7 +167,7 @@ public class PerformanceTestService { private void conversionFiles(String id, List conversionFileIdList) { for (String metaFileId : conversionFileIdList) { - if (!this.loadTestFileExsits(id, metaFileId)) { + if (!this.loadTestFileExists(id, metaFileId)) { LoadTestFile loadTestFile = new LoadTestFile(); loadTestFile.setTestId(id); loadTestFile.setFileId(metaFileId); @@ -176,13 +176,13 @@ public class PerformanceTestService { } } - private boolean loadTestFileExsits(String testId, String metaFileId) { - boolean fileExsits = fileMetadataService.isFileExits(metaFileId); + private boolean loadTestFileExists(String testId, String metaFileId) { + boolean fileExists = fileMetadataService.isFileExits(metaFileId); LoadTestFileExample example = new LoadTestFileExample(); example.createCriteria().andTestIdEqualTo(testId).andFileIdEqualTo(metaFileId); long loadTestFiles = loadTestFileMapper.countByExample(example); - if (!fileExsits && loadTestFiles > 0) { + if (!fileExists && loadTestFiles > 0) { return false; } else { return true;