|
|
@ -111,6 +111,8 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.transaction.support.TransactionSynchronizationAdapter; |
|
|
|
import org.springframework.transaction.support.TransactionSynchronizationManager; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
@ -777,10 +779,19 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi |
|
|
|
log.error("组长解决话题事件发送失败,参数:{}",JSON.toJSONString(closeFormDTO)); |
|
|
|
} |
|
|
|
//发送小组成就消息
|
|
|
|
boolean flag = SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendGroupAchievementMqMsg(new GroupAchievementMQMsg(topic.getCustomerId(), topic.getGroupId(), AchievementTypeEnum.RESOVLE_TOPIC.getCode())); |
|
|
|
if (!flag) { |
|
|
|
log.error("发送(小组成就)系统消息到message服务失败"); |
|
|
|
} |
|
|
|
TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapter() { |
|
|
|
@Override |
|
|
|
public void afterCommit() { |
|
|
|
try { |
|
|
|
boolean flag = SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendGroupAchievementMqMsg(new GroupAchievementMQMsg(topic.getCustomerId(), topic.getGroupId(), AchievementTypeEnum.RESOVLE_TOPIC.getCode())); |
|
|
|
if (!flag) { |
|
|
|
log.error("发送(小组成就)系统消息到message服务失败"); |
|
|
|
} |
|
|
|
}catch (Exception e){ |
|
|
|
logger.error("afterCommit",e); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
return new Result(); |
|
|
@ -1777,12 +1788,20 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi |
|
|
|
log.error("话题转议题事件发送失败,参数:{}",JSON.toJSONString(topicTurnIssueFromDTO)); |
|
|
|
} |
|
|
|
//发送小组成就消息
|
|
|
|
boolean flag = SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendGroupAchievementMqMsg(new GroupAchievementMQMsg(group.getCustomerId(), group.getGroupId(), AchievementTypeEnum.TOISSUE.getCode())); |
|
|
|
if (!flag) { |
|
|
|
log.error("发送(小组成就)系统消息到message服务失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapter() { |
|
|
|
@Override |
|
|
|
public void afterCommit() { |
|
|
|
try { |
|
|
|
boolean flag = SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendGroupAchievementMqMsg(new GroupAchievementMQMsg(group.getCustomerId(), group.getGroupId(), AchievementTypeEnum.TOISSUE.getCode())); |
|
|
|
if (!flag) { |
|
|
|
log.error("发送(小组成就)系统消息到message服务失败"); |
|
|
|
} |
|
|
|
}catch (Exception e){ |
|
|
|
logger.error("afterCommit",e); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
ValidatorUtils.validateEntity(result, FirstTopicShiftedToIssueApplicationResultDTO.AllowAuditionGroup.class); |
|
|
|
} |
|
|
|
|
|
|
|