chore: 代码拼写错误
This commit is contained in:
parent
14c2d2dd81
commit
9c1cab7c68
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package io.metersphere.plan.dto.reqeust;
|
||||
package io.metersphere.plan.dto.request;
|
||||
|
||||
|
||||
import io.metersphere.dto.RunModeConfigDTO;
|
|
@ -167,7 +167,7 @@ public class PerformanceTestService {
|
|||
|
||||
private void conversionFiles(String id, List<String> 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;
|
||||
|
|
Loading…
Reference in New Issue