Browse Source

议题详情中话题详情

dev_shibei_match
zxc 5 years ago
parent
commit
390ccd9628
  1. 13
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

13
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

@ -929,14 +929,13 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi
wrapper.eq(TopicConstant.TOPIC_ID,formDTO.getTopicId());
wrapper.orderByAsc(TopicConstant.SORT);
List<ResiTopicAttachmentEntity> attachments = resiTopicAttachmentDao.selectList(wrapper);
if (attachments.size()==NumConstant.ZERO){
return new TopicInfoDTO();
}
List<String> attachmentUrls = new ArrayList<>();
for(ResiTopicAttachmentEntity attachment : attachments){
attachmentUrls.add(attachment.getAttachmentUrl());
if (attachments.size() != NumConstant.ZERO){
List<String> attachmentUrls = new ArrayList<>();
for(ResiTopicAttachmentEntity attachment : attachments){
attachmentUrls.add(attachment.getAttachmentUrl());
}
topicInfo.setTopicImgs(attachmentUrls);
}
topicInfo.setTopicImgs(attachmentUrls);
//话题发起人
IssueInitiatorFormDTO issueInitiator = new IssueInitiatorFormDTO();
issueInitiator.setUserId(topicInfo.getPublishedUser());

Loading…
Cancel
Save