fix(项目管理): 修复文件关联关系没有及时更新而导致的报错问题

--bug=1039483 --user=宋天阳 【项目管理】文件管理-文件详情,上一个/下一个操作,提示报错 https://www.tapd.cn/55049933/s/1498432
This commit is contained in:
Jianguo-Genius 2024-04-16 15:13:18 +08:00 committed by 刘瑞斌
parent 9d12165c0e
commit 44b132eee5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class FileAssociationService {
//组装返回参数 //组装返回参数
List<FileAssociationResponse> responseList = new ArrayList<>(); List<FileAssociationResponse> responseList = new ArrayList<>();
associationList.forEach(item -> { associationList.forEach(item -> {
if(fileIdMap.containsKey(item.getFileId())){ if (fileIdMap.containsKey(item.getFileId()) && sourceIdNameMap.containsKey(item.getSourceId())) {
FileAssociationResponse response = new FileAssociationResponse(); FileAssociationResponse response = new FileAssociationResponse();
response.setId(item.getId()); response.setId(item.getId());
response.setSourceId(item.getSourceId()); response.setSourceId(item.getSourceId());