fix(接口测试): 接口定义详情不显示模块名称
--bug=1045008 --user=陈建星 【接口测试】定义-预览-基本信息-所属模块显示错误,一直显示- https://www.tapd.cn/55049933/s/1562082
This commit is contained in:
parent
50af2f5b93
commit
86dd4b1f74
|
@ -918,6 +918,10 @@ public class ApiDefinitionService extends MoveNodeService {
|
|||
Map<String, String> userMap = userLoginService.getUserNameMap(new ArrayList<>(userIds));
|
||||
apiDefinitionDTO.setCreateUserName(userMap.get(apiDefinitionDTO.getCreateUser()));
|
||||
apiDefinitionDTO.setUpdateUserName(userMap.get(apiDefinitionDTO.getUpdateUser()));
|
||||
ApiDefinitionModule apiDefinitionModule = apiDefinitionModuleMapper.selectByPrimaryKey(apiDefinitionDTO.getModuleId());
|
||||
if (apiDefinitionModule != null) {
|
||||
apiDefinitionDTO.setModuleName(apiDefinitionModule.getName());
|
||||
}
|
||||
return apiDefinitionDTO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue