1
This commit is contained in:
@@ -4,6 +4,8 @@ namespace App\Controller;
|
||||
|
||||
use App\Amqp\Producer\PrescriptionDistributePhProducer;
|
||||
use App\Constants\HttpEnumCode;
|
||||
use App\Model\OrderPrescriptionIcd;
|
||||
use App\Model\OrderPrescriptionProduct;
|
||||
use App\Request\DoctorAuthRequest;
|
||||
use App\Request\UserDoctorRequest;
|
||||
use App\Services\DoctorAuthService;
|
||||
@@ -13,6 +15,7 @@ use App\Services\UserDoctorService;
|
||||
use Extend\TencentIm\Account;
|
||||
use Hyperf\Amqp\Producer;
|
||||
use Hyperf\DbConnection\Db;
|
||||
use Hyperf\Snowflake\IdGeneratorInterface;
|
||||
use Hyperf\Utils\ApplicationContext;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
@@ -289,6 +292,25 @@ class UserDoctorController extends AbstractController
|
||||
*/
|
||||
public function addPrescription(): ResponseInterface
|
||||
{
|
||||
|
||||
// $data = array();
|
||||
// $data['order_prescription_id'] = "498883041773666305";
|
||||
// $data['icd_id'] = 111;
|
||||
// $order_prescription_icd = OrderPrescriptionIcd::addOrderPrescriptionIcd($data);
|
||||
// if (empty($order_prescription_icd)) {
|
||||
// dump(111);
|
||||
// }
|
||||
// die;
|
||||
// $data = array();
|
||||
// $data['order_prescription_id'] = "498883041773666305";
|
||||
// $data['product_id'] = 2;
|
||||
// $data['prescription_product_num'] = 1;
|
||||
// $order_prescription_product = OrderPrescriptionProduct::addOrderPrescriptionProduct($data);
|
||||
// if (empty($order_prescription_product)) {
|
||||
// dump(111);
|
||||
// }
|
||||
// dump(222);die;
|
||||
|
||||
$request = $this->container->get(UserDoctorRequest::class);
|
||||
$request->scene('addPrescription')->validateResolved();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user