新增等待创建检测订单队列,修改im报告推送

This commit is contained in:
2023-08-25 16:57:40 +08:00
parent 3169cf4bfc
commit 9b675c1681
6 changed files with 379 additions and 74 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace App\Amqp\Producer;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerDelayedMessageTrait;
use Hyperf\Amqp\Message\ProducerMessage;
use Hyperf\Amqp\Message\Type;
/**
* 检测订单自动完成延迟队列
* 当接收到检测报告时,如当时患者-医生存在问诊中订单,则加入此延迟队列,等待问诊结束后,检测订单才会接收
*/
#[Producer]
class DetectionCompleteDelayDirectProducer extends ProducerMessage
{
use ProducerDelayedMessageTrait;
protected string $exchange = 'amqp.delay.direct';
protected string $type = Type::DIRECT;
protected string|array $routingKey = 'DetectionComplete';
public function __construct($data)
{
$this->payload = $data;
}
}