|
@ -318,7 +318,7 @@ public class TopicDraftServiceImpl extends BaseServiceImpl<TopicDraftDao, TopicD |
|
|
//草稿状态更新为block
|
|
|
//草稿状态更新为block
|
|
|
TopicDraftEntity draftEntity = new TopicDraftEntity(); |
|
|
TopicDraftEntity draftEntity = new TopicDraftEntity(); |
|
|
draftEntity.setId(draftId); |
|
|
draftEntity.setId(draftId); |
|
|
draftEntity.setDraftStatus(TopicConstant.REVIEW); |
|
|
draftEntity.setDraftStatus(TopicConstant.BLOCK); |
|
|
draftEntity.setDraftReason("语音存在违规内容"); |
|
|
draftEntity.setDraftReason("语音存在违规内容"); |
|
|
baseDao.updateById(draftEntity); |
|
|
baseDao.updateById(draftEntity); |
|
|
|
|
|
|
|
@ -326,7 +326,7 @@ public class TopicDraftServiceImpl extends BaseServiceImpl<TopicDraftDao, TopicD |
|
|
//草稿状态更新为review
|
|
|
//草稿状态更新为review
|
|
|
TopicDraftEntity draftEntity = new TopicDraftEntity(); |
|
|
TopicDraftEntity draftEntity = new TopicDraftEntity(); |
|
|
draftEntity.setId(draftId); |
|
|
draftEntity.setId(draftId); |
|
|
draftEntity.setDraftStatus(TopicConstant.BLOCK); |
|
|
draftEntity.setDraftStatus(TopicConstant.REVIEW); |
|
|
draftEntity.setDraftReason("需要人工审核"); |
|
|
draftEntity.setDraftReason("需要人工审核"); |
|
|
baseDao.updateById(draftEntity); |
|
|
baseDao.updateById(draftEntity); |
|
|
|
|
|
|
|
@ -370,6 +370,9 @@ public class TopicDraftServiceImpl extends BaseServiceImpl<TopicDraftDao, TopicD |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
TopicDraftEntity topic = ConvertUtils.sourceToTarget(formDTO,TopicDraftEntity.class); |
|
|
TopicDraftEntity topic = ConvertUtils.sourceToTarget(formDTO,TopicDraftEntity.class); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(formDTO.getVoiceList()) && StringUtils.isBlank(formDTO.getTopicContent())) { |
|
|
|
|
|
topic.setTopicContent("语音话题"); |
|
|
|
|
|
} |
|
|
topic.setCreatedBy(tokenDto.getUserId()); |
|
|
topic.setCreatedBy(tokenDto.getUserId()); |
|
|
topic.setDraftStatus(TopicConstant.AUDITING); |
|
|
topic.setDraftStatus(TopicConstant.AUDITING); |
|
|
topic.setIsSee(NumConstant.ZERO_STR); |
|
|
topic.setIsSee(NumConstant.ZERO_STR); |
|
@ -635,10 +638,6 @@ public class TopicDraftServiceImpl extends BaseServiceImpl<TopicDraftDao, TopicD |
|
|
result = baseDao.selectTopicDraftByGroup(formDTO.getGroupId(), formDTO.getStatus()); |
|
|
result = baseDao.selectTopicDraftByGroup(formDTO.getGroupId(), formDTO.getStatus()); |
|
|
} |
|
|
} |
|
|
result.forEach(item -> { |
|
|
result.forEach(item -> { |
|
|
List<TopicDraftAttachmentDTO> list = topicDraftAttachmentService.getFileList(item.getTopicDraftId(), TopicConstant.VOICE); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(list) && StringUtils.isBlank(item.getTopicContent())) { |
|
|
|
|
|
item.setTopicContent("语音话题"); |
|
|
|
|
|
} |
|
|
|
|
|
ResiGroupMemberInfoRedisDTO memberRedis = |
|
|
ResiGroupMemberInfoRedisDTO memberRedis = |
|
|
resiGroupMemberRedis.get(formDTO.getGroupId(),item.getUserName()); |
|
|
resiGroupMemberRedis.get(formDTO.getGroupId(),item.getUserName()); |
|
|
if(null != memberRedis && StringUtils.isNotBlank(memberRedis.getUserId())){ |
|
|
if(null != memberRedis && StringUtils.isNotBlank(memberRedis.getUserId())){ |
|
@ -768,7 +767,9 @@ public class TopicDraftServiceImpl extends BaseServiceImpl<TopicDraftDao, TopicD |
|
|
breviary.append("\""); |
|
|
breviary.append("\""); |
|
|
breviary.append(content.length() > NumConstant.TEN ? (content.substring(NumConstant.TEN) + "…") : content); |
|
|
breviary.append(content.length() > NumConstant.TEN ? (content.substring(NumConstant.TEN) + "…") : content); |
|
|
breviary.append("\""); |
|
|
breviary.append("\""); |
|
|
}else breviary.append("话题"); |
|
|
}else { |
|
|
|
|
|
breviary.append("话题"); |
|
|
|
|
|
} |
|
|
sendMqMsg(draft.getCreatedBy(), draft.getCustomerId(),draft.getCreatedTime(),resiGroupRedis.get(draft.getGroupId()).getGroupName(),breviary.toString()); |
|
|
sendMqMsg(draft.getCreatedBy(), draft.getCustomerId(),draft.getCreatedTime(),resiGroupRedis.get(draft.getGroupId()).getGroupName(),breviary.toString()); |
|
|
} |
|
|
} |
|
|
//记录操作记录
|
|
|
//记录操作记录
|
|
|