Browse Source

话题语音审核结果查询定时任务修改

dev_shibei_match
zhaoqifeng 5 years ago
parent
commit
3f77e97de3
  1. 15
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/TopicDraftServiceImpl.java

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

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

Loading…
Cancel
Save