|
|
@ -1580,8 +1580,43 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi |
|
|
|
} |
|
|
|
|
|
|
|
//发送积分
|
|
|
|
|
|
|
|
|
|
|
|
//mq的事件类型
|
|
|
|
MqBaseMsgDTO mqBaseMsgDTO = new MqBaseMsgDTO(); |
|
|
|
mqBaseMsgDTO.setEventClass("resi_group"); |
|
|
|
//事件code
|
|
|
|
mqBaseMsgDTO.setEventTag(EventEnum.SHIFT_TOPIC_TO_ISSUE.getEventTag()); |
|
|
|
List<BasePointEventMsg> pointEventMsgList = new ArrayList<>(); |
|
|
|
//1.话题被转为议题 组内成员
|
|
|
|
group.getTopicAuthorId(); |
|
|
|
BasePointEventMsg pointEventMsg = new BasePointEventMsg(); |
|
|
|
pointEventMsg.setCustomerId(groupCache.getCustomerId()); |
|
|
|
//pointEventMsg.setUserId(inviter);
|
|
|
|
pointEventMsg.setActionFlag(MqConstant.PLUS); |
|
|
|
pointEventMsg.setIsCommon(false); |
|
|
|
//pointEventMsg.setTargetDate(groupMemeberOperationDTO.getCreatedTime());
|
|
|
|
pointEventMsg.setEventTag(EventEnum.TOPIC_SHIFTED_TO_ISSUE.getEventTag()); |
|
|
|
|
|
|
|
pointEventMsgList.add(pointEventMsg); |
|
|
|
|
|
|
|
//2.转话题为议题 组长
|
|
|
|
topicTurnIssueFromDTO.getUserId(); |
|
|
|
|
|
|
|
|
|
|
|
pointEventMsg.setCustomerId(groupCache.getCustomerId()); |
|
|
|
//pointEventMsg.setUserId(inviter);
|
|
|
|
pointEventMsg.setActionFlag(MqConstant.PLUS); |
|
|
|
pointEventMsg.setIsCommon(false); |
|
|
|
//pointEventMsg.setTargetDate(groupMemeberOperationDTO.getCreatedTime());
|
|
|
|
pointEventMsg.setEventTag(EventEnum.SHIFT_TOPIC_TO_ISSUE.getEventTag()); |
|
|
|
|
|
|
|
pointEventMsgList.add(pointEventMsg); |
|
|
|
|
|
|
|
mqBaseMsgDTO.setMsg(JSON.toJSONString(pointEventMsgList)); |
|
|
|
if(!SendMqMsgUtils.sendMsg(mqBaseMsgDTO).success()){ |
|
|
|
log.error("事件发送失败,参数:{}",JSON.toJSONString(topicTurnIssueFromDTO)); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
ValidatorUtils.validateEntity(result, FirstTopicShiftedToIssueApplicationResultDTO.AllowAuditionGroup.class); |
|
|
|