Browse Source

项目发送到第三方平台

dev
zhaoqifeng 4 years ago
parent
commit
d99618d433
  1. 6
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/ProjectServiceImpl.java

6
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/ProjectServiceImpl.java

@ -2181,12 +2181,12 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit
IssueDetailFormDTO issueDetailFormDTO = new IssueDetailFormDTO(); IssueDetailFormDTO issueDetailFormDTO = new IssueDetailFormDTO();
issueDetailFormDTO.setIssueId(projectEntity.getOriginId()); issueDetailFormDTO.setIssueId(projectEntity.getOriginId());
Result<GovIssueDetailResultDTO> issueDetail = govIssueOpenFeignClient.votingissuedetail(issueDetailFormDTO); Result<GovIssueDetailResultDTO> issueDetail = govIssueOpenFeignClient.votingissuedetail(issueDetailFormDTO);
if (!issueDetail.success()) { if (!issueDetail.success() || null == issueDetail.getData()) {
throw new RenException(issueDetail.getCode(), issueDetail.getMsg()); throw new RenException(issueDetail.getCode(), issueDetail.getMsg());
} }
//获取话题详情 //获取话题详情
Result<ResiTopicDTO> topic = resiGroupOpenFeignClient.getTopicById(issueDetail.getData().getTopicInfo().getTopicId()); Result<ResiTopicDTO> topic = resiGroupOpenFeignClient.getTopicById(issueDetail.getData().getTopicInfo().getTopicId());
if (!topic.success()) { if (!topic.success() || null == topic.getData()) {
throw new RenException(topic.getCode(), topic.getMsg()); throw new RenException(topic.getCode(), topic.getMsg());
} }
applyAssistFormDTO.setLatitude(topic.getData().getDimension()); applyAssistFormDTO.setLatitude(topic.getData().getDimension());
@ -2198,7 +2198,7 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit
TopicAttachmentFormDTO topicAttachmentFormDTO = new TopicAttachmentFormDTO(); TopicAttachmentFormDTO topicAttachmentFormDTO = new TopicAttachmentFormDTO();
topicAttachmentFormDTO.setTopicId(issueDetail.getData().getTopicInfo().getTopicId()); topicAttachmentFormDTO.setTopicId(issueDetail.getData().getTopicInfo().getTopicId());
Result<TopicAttachmentResultDTO> topicAttachment = resiGroupOpenFeignClient.topicAttachmentList(topicAttachmentFormDTO); Result<TopicAttachmentResultDTO> topicAttachment = resiGroupOpenFeignClient.topicAttachmentList(topicAttachmentFormDTO);
if (!topicAttachment.success()) { if (!topicAttachment.success() || null == topicAttachment.getData()) {
throw new RenException(topicAttachment.getCode(), topicAttachment.getMsg()); throw new RenException(topicAttachment.getCode(), topicAttachment.getMsg());
} }
if (CollectionUtils.isNotEmpty(issueDetail.getData().getTopicInfo().getPhotoList())) { if (CollectionUtils.isNotEmpty(issueDetail.getData().getTopicInfo().getPhotoList())) {

Loading…
Cancel
Save