新增处方队列执行,系统配置选择添加队列

This commit is contained in:
2023-04-20 14:14:09 +08:00
parent 3d4a941537
commit c120103692
8 changed files with 161 additions and 20 deletions
@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace App\Amqp\Producer;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;
/**
* 药师自动签章审核
* 医生签章后,加入此队列,下载医生签章pdf,并进行药师/医院签章审核
*/
#[Producer(exchange: 'amqp.direct', routingKey: 'AutoPharmacistCaVerify')]
class AutoPharmacistCaVerifyProducer extends ProducerMessage
{
/**
* @param $data
* [
* prescription_file_id:订单-处方表-ca处方文件主键
* order_prescription_id:订单-处方id
* ]
*/
public function __construct($data)
{
$this->payload = $data;
}
}