fix(接口测试): 接口导入选覆盖,ID应该不变
This commit is contained in:
parent
29d4e4ebe1
commit
406e51560a
|
@ -1309,6 +1309,7 @@ public class ApiAutomationService {
|
|||
} else {
|
||||
//如果存在则修改
|
||||
scenarioWithBLOBs.setId(sameRequest.get(0).getId());
|
||||
scenarioWithBLOBs.setNum(sameRequest.get(0).getNum());
|
||||
batchMapper.updateByPrimaryKeyWithBLOBs(scenarioWithBLOBs);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -422,6 +422,7 @@ public class ApiDefinitionService {
|
|||
String request = setImportHashTree(apiDefinition);
|
||||
apiDefinition.setModuleId(sameRequest.get(0).getModuleId());
|
||||
apiDefinition.setModulePath(sameRequest.get(0).getModulePath());
|
||||
apiDefinition.setNum(sameRequest.get(0).getNum()); //id 不变
|
||||
apiDefinitionMapper.updateByPrimaryKeyWithBLOBs(apiDefinition);
|
||||
apiDefinition.setRequest(request);
|
||||
importApiCase(apiDefinition, apiTestCaseMapper, apiTestImportRequest, false);
|
||||
|
|
Loading…
Reference in New Issue