Browse Source

Merge remote-tracking branch 'origin/dev_voice_share_point' into dev_temp

master
wangchao 5 years ago
parent
commit
b29e29c113
  1. 3
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/TopicDraftServiceImpl.java
  2. 5
      epmet-module/resi-group/resi-group-server/src/main/resources/mapper/topic/ResiTopicDao.xml

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

@ -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);

5
epmet-module/resi-group/resi-group-server/src/main/resources/mapper/topic/ResiTopicDao.xml

@ -137,6 +137,7 @@
RESI_TOPIC_ATTACHMENT attachment
WHERE
attachment.DEL_FLAG = '0'
AND attachment.ATTACHMENT_TYPE = 'image'
GROUP BY attachment.TOPIC_ID
) attachement2
ON
@ -155,7 +156,7 @@
SELECT
topic.ID AS topicId,
topic.GROUP_ID,
IFNULL(topic.TOPIC_CONTENT,'语音话题') AS topicContent,
topic.TOPIC_CONTENT,
topic.STATUS,
topic.CREATED_TIME AS releaseTime,
topic.CREATED_BY AS userId,
@ -203,7 +204,7 @@
SELECT
topic.ID AS topicId,
topic.GROUP_ID,
IFNULL(topic.TOPIC_CONTENT,'语音话题') AS topicContent,
topic.TOPIC_CONTENT,
topic.STATUS,
topic.CREATED_TIME AS releaseTime,
topic.CREATED_BY AS userId,

Loading…
Cancel
Save