fix(接口测试): 修复接口定义回收站恢复数据报错的缺陷 (#15544)

--bug=1014656 --user=王孝刚 【接口测试】接口定义,回收站恢复接口,报错了
https://www.tapd.cn/55049933/s/1195815

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-07-06 17:33:48 +08:00 committed by GitHub
parent 0d7fe4a902
commit 6ca32dbb4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -465,6 +465,7 @@ public class ApiDefinitionService {
apiDefinitionRequest.setPath(apiDefinition.getPath()); apiDefinitionRequest.setPath(apiDefinition.getPath());
apiDefinitionRequest.setName(apiDefinition.getName()); apiDefinitionRequest.setName(apiDefinition.getName());
apiDefinitionRequest.setId(apiDefinition.getId()); apiDefinitionRequest.setId(apiDefinition.getId());
apiDefinitionRequest.setModuleId(apiDefinition.getModuleId());
apiDefinitionRequest.setVersionId(extProjectVersionMapper.getDefaultVersion(request.getProjectId())); apiDefinitionRequest.setVersionId(extProjectVersionMapper.getDefaultVersion(request.getProjectId()));
checkNameExist(apiDefinitionRequest); checkNameExist(apiDefinitionRequest);