Merge branch 'uat_partyMemberEvent' into uat_code
This commit is contained in:
@ -51,13 +51,13 @@ public class EventStyleServiceImpl extends ServiceImpl<EventStyleMapper, EventSt
|
||||
query.eq(EventStyle::getBanner, "0").eq(EventStyle::getStatus, "1").orderByAsc(EventStyle::getSort);
|
||||
}
|
||||
list = this.list(query);
|
||||
List<String> imageIdList = list.stream().map(EventStyle::getImage).collect(Collectors.toList());
|
||||
List<String> imageIdList = list.stream().map(EventStyle::getImage).distinct().collect(Collectors.toList());
|
||||
BaseResponse<List<DocumentDataVO>> queryReturn = documentCenterService.queryReturn(imageIdList);
|
||||
log.info("文档中心返回:{}", queryReturn.toString());
|
||||
PartyEventExceptionEnum.FRAME_EXCEPTION_NO_IMAGE_INFO_FAIL.customValid(!queryReturn.isSuccess());
|
||||
Map<String, DocumentDataVO> collect = queryReturn.getData().stream().collect(Collectors.toMap(DocumentDataVO::getObjectId, Function.identity()));
|
||||
Map<String, DocumentDataVO> collect = queryReturn.getData().stream().collect(Collectors.toMap(DocumentDataVO::getObjectId, Function.identity(),(o1,o2) -> o1));
|
||||
|
||||
list.forEach(l -> l.setFilePath(collect.get(l.getImage()).getFilePath()));
|
||||
list.forEach(l -> l.setFilePath(collect.get(l.getImage()) == null ? "" : collect.get(l.getImage()).getFilePath()));
|
||||
return list;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user