Browse Source

/resi/group/topic/topicattachmentlist返回null不行,加载不出来页面

dev
yinzuomei 3 years ago
parent
commit
a754943131
  1. 3
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

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

@ -2440,7 +2440,8 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi
@Override @Override
public TopicAttachmentResultDTO topicAttachmentList(TopicAttachmentFormDTO formDTO) { public TopicAttachmentResultDTO topicAttachmentList(TopicAttachmentFormDTO formDTO) {
if(StringUtils.isBlank(formDTO.getTopicId())){ if(StringUtils.isBlank(formDTO.getTopicId())){
return null; //返回null不行,加载不出来页面,哎,new个对象吧
return new TopicAttachmentResultDTO();
} }
TopicAttachmentResultDTO resultDTO = new TopicAttachmentResultDTO(); TopicAttachmentResultDTO resultDTO = new TopicAttachmentResultDTO();
//1.根据话题id查询所有的附件数据 //1.根据话题id查询所有的附件数据

Loading…
Cancel
Save