chore: 代码拼写错误

This commit is contained in:
CaptainB 2022-10-21 10:14:00 +08:00 committed by 刘瑞斌
parent 14c2d2dd81
commit 9c1cab7c68
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
package io.metersphere.plan.controller; 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 io.metersphere.plan.service.PerfExecService;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;

View File

@ -1,4 +1,4 @@
package io.metersphere.plan.dto.reqeust; package io.metersphere.plan.dto.request;
import io.metersphere.dto.RunModeConfigDTO; import io.metersphere.dto.RunModeConfigDTO;

View File

@ -167,7 +167,7 @@ public class PerformanceTestService {
private void conversionFiles(String id, List<String> conversionFileIdList) { private void conversionFiles(String id, List<String> conversionFileIdList) {
for (String metaFileId : conversionFileIdList) { for (String metaFileId : conversionFileIdList) {
if (!this.loadTestFileExsits(id, metaFileId)) { if (!this.loadTestFileExists(id, metaFileId)) {
LoadTestFile loadTestFile = new LoadTestFile(); LoadTestFile loadTestFile = new LoadTestFile();
loadTestFile.setTestId(id); loadTestFile.setTestId(id);
loadTestFile.setFileId(metaFileId); loadTestFile.setFileId(metaFileId);
@ -176,13 +176,13 @@ public class PerformanceTestService {
} }
} }
private boolean loadTestFileExsits(String testId, String metaFileId) { private boolean loadTestFileExists(String testId, String metaFileId) {
boolean fileExsits = fileMetadataService.isFileExits(metaFileId); boolean fileExists = fileMetadataService.isFileExits(metaFileId);
LoadTestFileExample example = new LoadTestFileExample(); LoadTestFileExample example = new LoadTestFileExample();
example.createCriteria().andTestIdEqualTo(testId).andFileIdEqualTo(metaFileId); example.createCriteria().andTestIdEqualTo(testId).andFileIdEqualTo(metaFileId);
long loadTestFiles = loadTestFileMapper.countByExample(example); long loadTestFiles = loadTestFileMapper.countByExample(example);
if (!fileExsits && loadTestFiles > 0) { if (!fileExists && loadTestFiles > 0) {
return false; return false;
} else { } else {
return true; return true;