fix(项目管理): 修复文件关联关系没有及时更新而导致的报错问题
--bug=1039483 --user=宋天阳 【项目管理】文件管理-文件详情,上一个/下一个操作,提示报错 https://www.tapd.cn/55049933/s/1498432
This commit is contained in:
parent
9d12165c0e
commit
44b132eee5
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue