|
|
@@ -118,7 +118,7 @@ public class BizReasearchQueueClinicServiceImpl extends ServiceImpl<BizReasearch
|
|
|
insertBatch.parallelStream().forEach(queueClinicPO -> {
|
|
|
rabbitTemplate.convertAndSend(
|
|
|
RabbitMQConstant.TOPIC_EXCHANGE_MP_NAME,
|
|
|
- RabbitMQConstant.QUEUE_REASEARCH_PUSH,
|
|
|
+ RabbitMQConstant.ROUTING_KEY_REASEARCH_PUSH,
|
|
|
queueClinicPO.getId(),
|
|
|
message -> {
|
|
|
message.getMessageProperties().getHeaders().put("x-delay", 3);
|
|
|
@@ -209,6 +209,7 @@ public class BizReasearchQueueClinicServiceImpl extends ServiceImpl<BizReasearch
|
|
|
|
|
|
// 过滤出大于上次推送间隔的时间点
|
|
|
timePointsFormat = timePointsFormat.stream()
|
|
|
+ .map(Long::valueOf)
|
|
|
.filter(timeInterval -> timeInterval > lastPushInterval)
|
|
|
.collect(Collectors.toList());
|
|
|
log.debug("过滤后的推送时间点: {}", timePointsFormat);
|
|
|
@@ -298,6 +299,9 @@ public class BizReasearchQueueClinicServiceImpl extends ServiceImpl<BizReasearch
|
|
|
.build());
|
|
|
try {
|
|
|
BizMpPublishInfoDTO publishInfo = baseMapper.selectPushInfo(source.getId());
|
|
|
+ if(ObjectUtil.isNull(publishInfo)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
wxTemplateSendHelper.sendMsg(publishInfo, MpPublishTaskTypeEnums.AFTER_QUESTION.getType());
|
|
|
}catch (Exception e){
|
|
|
|