|
|
@ -145,10 +145,16 @@ public class EventCommentServiceImpl extends BaseServiceImpl<EventCommentDao, Ev |
|
|
|
// 判断评论或回复的是议题还是项目
|
|
|
|
if (StringUtils.isNotEmpty(commentFormDTO.getIssueId())) { |
|
|
|
issueEntity = issueService.selectById(commentFormDTO.getIssueId()); |
|
|
|
if (null == issueEntity || StringUtils.isEmpty(issueEntity.getEventId())) { |
|
|
|
return new Result().error("获取事件信息失败"); |
|
|
|
} |
|
|
|
commentEntity.setEventId(issueEntity.getEventId()); |
|
|
|
} else { |
|
|
|
isIssue = false; |
|
|
|
itemEntity = itemService.selectById(commentFormDTO.getItemId()); |
|
|
|
if (null == itemEntity || StringUtils.isEmpty(itemEntity.getEventId())) { |
|
|
|
return new Result().error("获取事件信息失败"); |
|
|
|
} |
|
|
|
commentEntity.setEventId(itemEntity.getEventId()); |
|
|
|
} |
|
|
|
|
|
|
|