parent
118575abb9
commit
dbc6c24a0b
|
@ -989,7 +989,8 @@ public class ApiDefinitionService {
|
||||||
if (caseList == null || caseList.isEmpty()) {
|
if (caseList == null || caseList.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (ApiTestCaseWithBLOBs apiTestCaseWithBLOBs : caseList) {
|
for (int i = 0; i < caseList.size(); i++) {
|
||||||
|
ApiTestCaseWithBLOBs apiTestCaseWithBLOBs = caseList.get(i);
|
||||||
apiTestCaseWithBLOBs.setApiDefinitionId(apiDefinition.getId());
|
apiTestCaseWithBLOBs.setApiDefinitionId(apiDefinition.getId());
|
||||||
if (apiDefinition.getToBeUpdated() != null && !apiTestCaseWithBLOBs.getVersionId().equals("cover")) {
|
if (apiDefinition.getToBeUpdated() != null && !apiTestCaseWithBLOBs.getVersionId().equals("cover")) {
|
||||||
apiTestCaseWithBLOBs.setToBeUpdated(true);
|
apiTestCaseWithBLOBs.setToBeUpdated(true);
|
||||||
|
@ -1013,7 +1014,7 @@ public class ApiDefinitionService {
|
||||||
apiTestCaseWithBLOBs.setOrder(getImportNextCaseOrder(apiDefinition.getProjectId()));
|
apiTestCaseWithBLOBs.setOrder(getImportNextCaseOrder(apiDefinition.getProjectId()));
|
||||||
}
|
}
|
||||||
if (apiTestCaseWithBLOBs.getNum() == null) {
|
if (apiTestCaseWithBLOBs.getNum() == null) {
|
||||||
apiTestCaseWithBLOBs.setNum(testCaseService.getNextNum(apiDefinition.getId()));
|
apiTestCaseWithBLOBs.setNum(apiTestCaseService.getNextNum(apiDefinition.getId(), apiDefinition.getNum() + i, apiDefinition.getProjectId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (apiDefinition.getToBeUpdateTime() != null) {
|
if (apiDefinition.getToBeUpdateTime() != null) {
|
||||||
|
|
Loading…
Reference in New Issue