|
|
@ -251,7 +251,7 @@ public class TopicDraftServiceImpl extends BaseServiceImpl<TopicDraftDao, TopicD |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void createTopic(TokenDto tokenDto, CreateTopicFormDTO formDTO) { |
|
|
|
if(StringUtils.isEmpty(formDTO.getTopicContent()) && CollectionUtils.isEmpty(formDTO.getVideoList())) { |
|
|
|
if(StringUtils.isBlank(formDTO.getTopicContent()) && CollectionUtils.isEmpty(formDTO.getVoiceList())) { |
|
|
|
//话题内容和语音不能同时为空
|
|
|
|
log.error(ModuleConstant.TOPIC_CONTENT_AND_VOICE_IS_NULL); |
|
|
|
throw new RenException(ModuleConstant.TOPIC_CONTENT_AND_VOICE_IS_NULL); |
|
|
|