fix(接口测试): 修复场景一直loading问题

https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018825
--user=郭雨琦
This commit is contained in:
guoyuqi 2022-10-25 11:45:35 +08:00 committed by xiaomeinvG
parent ce02110fc0
commit 339d358d04
1 changed files with 3 additions and 3 deletions

View File

@ -168,10 +168,10 @@ public class MsHashTreeService {
} else {
if (StringUtils.equalsIgnoreCase(element.optString(REFERENCED), "Copy")) {
ApiDefinitionResult definitionWithBLOBs = apiDefinitionService.getById(element.optString(ID));
Project project = projectMapper.selectByPrimaryKey(definitionWithBLOBs.getProjectId());
definitionWithBLOBs.setProjectName(project.getName());
definitionWithBLOBs.setVersionEnable(project.getVersionEnable());
if (definitionWithBLOBs != null) {
Project project = projectMapper.selectByPrimaryKey(definitionWithBLOBs.getProjectId());
definitionWithBLOBs.setProjectName(project.getName());
definitionWithBLOBs.setVersionEnable(project.getVersionEnable());
element.put(ID, definitionWithBLOBs.getId());
this.setElement(element, definitionWithBLOBs.getNum(), enable, definitionWithBLOBs.getVersionName(), definitionWithBLOBs.getVersionEnable());
isExist = true;