fix(接口定义): 解决:第一次 swagger 导入后移动 module 位置,再次导入后 module 位置被还原 bug (#1865)
This commit is contained in:
parent
189dd3cd94
commit
a9c53afaea
|
@ -373,6 +373,8 @@ public class ApiDefinitionService {
|
||||||
//如果存在则修改
|
//如果存在则修改
|
||||||
apiDefinition.setId(sameRequest.get(0).getId());
|
apiDefinition.setId(sameRequest.get(0).getId());
|
||||||
String request = setImportHashTree(apiDefinition);
|
String request = setImportHashTree(apiDefinition);
|
||||||
|
apiDefinition.setModuleId(sameRequest.get(0).getModuleId());
|
||||||
|
apiDefinition.setModulePath(sameRequest.get(0).getModulePath());
|
||||||
apiDefinitionMapper.updateByPrimaryKeyWithBLOBs(apiDefinition);
|
apiDefinitionMapper.updateByPrimaryKeyWithBLOBs(apiDefinition);
|
||||||
apiDefinition.setRequest(request);
|
apiDefinition.setRequest(request);
|
||||||
importApiCase(apiDefinition, apiTestCaseMapper, apiTestImportRequest, false);
|
importApiCase(apiDefinition, apiTestCaseMapper, apiTestImportRequest, false);
|
||||||
|
|
Loading…
Reference in New Issue