fix(测试跟踪): 集成Zentao同步缺陷附件报错问题

--bug=1023370 --user=宋昌昌 【测试跟踪】缺陷管理-集成Zentao-同步缺陷-后端报错 https://www.tapd.cn/55049933/s/1338597
This commit is contained in:
song-cc-rock 2023-02-20 16:41:47 +08:00 committed by jianxing
parent d9fc47589c
commit c5d061f30b
1 changed files with 3 additions and 0 deletions

View File

@ -1018,6 +1018,9 @@ public class IssuesService {
.collect(Collectors.toSet());
List<PlatformAttachment> syncAttachments = attachmentMap.get(issueId);
if (CollectionUtils.isEmpty(syncAttachments)) {
continue;
}
for (PlatformAttachment syncAttachment : syncAttachments) {
String fileName = syncAttachment.getFileName();
String fileKey = syncAttachment.getFileKey();