新增自动开具处方。修改ca对接
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Amqp\Producer\PrescriptionExpiredDelayDirectProducer;
|
||||
use App\Constants\HttpEnumCode;
|
||||
use App\Model\OrderInquiry;
|
||||
use App\Model\OrderPrescription;
|
||||
use App\Model\OrderPrescriptionFile;
|
||||
use App\Model\OrderPrescriptionProduct;
|
||||
use App\Model\User;
|
||||
use App\Model\UserDoctor;
|
||||
@@ -100,7 +101,6 @@ class UserPharmacistService extends BaseService
|
||||
"prescription_status",
|
||||
"pharmacist_audit_status",
|
||||
"platform_audit_status",
|
||||
"prescription_img",
|
||||
"doctor_id",
|
||||
];
|
||||
|
||||
@@ -112,6 +112,16 @@ class UserPharmacistService extends BaseService
|
||||
return fail();
|
||||
}
|
||||
|
||||
// 获取处方文件数据
|
||||
$params = array();
|
||||
$params['order_prescription_id'] = $order_prescription_id;
|
||||
$order_prescription_file = OrderPrescriptionFile::getOne($params);
|
||||
if (empty($order_prescription_file)){
|
||||
return fail();
|
||||
}
|
||||
|
||||
$order_prescription['prescription_img_oss_path'] = addAliyunOssWebsite($order_prescription_file['prescription_img_oss_path']);
|
||||
|
||||
$order_prescription['prescription_img'] = addAliyunOssWebsite($order_prescription['prescription_img']);
|
||||
|
||||
// 获取处方中医生签名
|
||||
@@ -134,6 +144,7 @@ class UserPharmacistService extends BaseService
|
||||
*/
|
||||
public function putPrescriptionVerify(): array
|
||||
{
|
||||
return fail(HttpEnumCode::SERVER_ERROR,"暂时无法人工审核");
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$order_prescription_id = $this->request->route('order_prescription_id');
|
||||
@@ -164,7 +175,7 @@ class UserPharmacistService extends BaseService
|
||||
|
||||
// 验证处方状态
|
||||
if ($order_prescription['prescription_status'] != 1){
|
||||
// 处方状态(1:待审核 3:待使用 4:已失效 5:已使用)
|
||||
// 处方状态(1:待审核 2:待使用 3:已失效 4:已使用)
|
||||
return fail(HttpEnumCode::HTTP_ERROR,"处方审核失败");
|
||||
}
|
||||
|
||||
@@ -332,4 +343,6 @@ class UserPharmacistService extends BaseService
|
||||
|
||||
return success($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user