|
|
@ -803,6 +803,9 @@ public class TopicDraftServiceImpl extends BaseServiceImpl<TopicDraftDao, TopicD |
|
|
|
Date currentTime = new Date(); |
|
|
|
//2.创建话题
|
|
|
|
ResiTopicEntity topic = ConvertUtils.sourceToTarget(formDTO,ResiTopicEntity.class); |
|
|
|
if (CollectionUtils.isNotEmpty(formDTO.getVoiceList()) && StringUtils.isBlank(formDTO.getTopicContent())) { |
|
|
|
topic.setTopicContent("语音话题"); |
|
|
|
} |
|
|
|
topic.setCreatedBy(tokenDto.getUserId()); |
|
|
|
topic.setStatus(TopicConstant.PUBLISHMENT); |
|
|
|
resiTopicDao.insertOne(topic); |
|
|
|