|
|
@@ -86,6 +86,9 @@ public class BizReasearchQueueClinicServiceImpl extends ServiceImpl<BizReasearch
|
|
|
.map(BizReasearchQueueClinicPO::getClinicRoomId)
|
|
|
.collect(Collectors.toList()));
|
|
|
}
|
|
|
+ if (CollectionUtil.isEmpty(clinicIds)) {
|
|
|
+ return Boolean.TRUE;
|
|
|
+ }
|
|
|
List<BizReasearchQueueClinicPO> insertBatch = clinicIds.stream()
|
|
|
.map(clinicId -> {
|
|
|
BizReasearchQueueClinicPO result = new BizReasearchQueueClinicPO();
|
|
|
@@ -251,10 +254,11 @@ public class BizReasearchQueueClinicServiceImpl extends ServiceImpl<BizReasearch
|
|
|
// 发送延迟消息
|
|
|
rabbitTemplate.convertAndSend(
|
|
|
RabbitMQConstant.TOPIC_EXCHANGE_MP_NAME,
|
|
|
- RabbitMQConstant.ROUTING_KEY_MP_PUSH,
|
|
|
+ RabbitMQConstant.QUEUE_REASEARCH_PUSH,
|
|
|
id,
|
|
|
message -> {
|
|
|
- message.getMessageProperties().getHeaders().put("x-delay", delayTime);
|
|
|
+// message.getMessageProperties().getHeaders().put("x-delay", delayTime);
|
|
|
+ message.getMessageProperties().getHeaders().put("x-delay", 3);
|
|
|
return message;
|
|
|
}
|
|
|
);
|