|
@@ -83,14 +83,8 @@ public class PurchaseContractProductServiceImpl extends BasicsServiceImpl<Purcha
|
|
|
}
|
|
|
}
|
|
|
if(MapUtils.isNotEmpty(PcpAttachmentMap)){
|
|
|
- List<Attachment> attachmentCps = PcpAttachmentMap.get(purchaseProduct.getId());
|
|
|
- if (CollectionUtils.isNotEmpty(attachmentCps)) {
|
|
|
- //获取其他产品附件
|
|
|
- List<Attachment> attr = attachmentCps.stream().filter(obj -> obj.getBusiType() == AttachmentConstant.BusiType.PRODUCT).collect(Collectors.toList());
|
|
|
- if (CollectionUtils.isNotEmpty(attr)) {
|
|
|
- purchaseProduct.setAttachments(attr);
|
|
|
- }
|
|
|
- }
|
|
|
+ List<Attachment> attr = PcpAttachmentMap.get(purchaseProduct.getId());
|
|
|
+ purchaseProduct.setAttachments(attr);
|
|
|
}
|
|
|
}
|
|
|
return list;
|