From 47a99763260cf72df2a76aaab2b050d2974b69df Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 9 May 2023 11:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E4=BB=BD=E9=97=AE=E8=AF=8A=E7=97=85=E4=BE=8B=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/PatientCaseController.php | 24 --------- app/Services/PatientCaseService.php | 67 ------------------------ config/routes.php | 7 --- 3 files changed, 98 deletions(-) delete mode 100644 app/Controller/PatientCaseController.php delete mode 100644 app/Services/PatientCaseService.php diff --git a/app/Controller/PatientCaseController.php b/app/Controller/PatientCaseController.php deleted file mode 100644 index e3f157f..0000000 --- a/app/Controller/PatientCaseController.php +++ /dev/null @@ -1,24 +0,0 @@ -response->json(["暂停使用"]); - $PatientCaseService = new PatientCaseService(); - $data = $PatientCaseService->getLastCase(); - return $this->response->json($data); - } -} \ No newline at end of file diff --git a/app/Services/PatientCaseService.php b/app/Services/PatientCaseService.php deleted file mode 100644 index 3dc2d0c..0000000 --- a/app/Services/PatientCaseService.php +++ /dev/null @@ -1,67 +0,0 @@ -request->route('family_id'); - - $user_info = $this->request->getAttribute("userInfo") ?? []; - - // 查询该家庭成员是否存在问诊记录 - $order_inquiry_params = array(); - $order_inquiry_params['patient_id'] = $user_info['client_user_id']; - $order_inquiry_params['family_id'] = $family_id; - $order_inquiry_params['inquiry_status'] = 6;// 问诊订单状态(1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消) - $order_inquiry_params['inquiry_refund_status'] = 0; - - // 查询该家庭成员最后一次已完成的问诊病例 - $params = array(); - $params['patient_id'] = $user_info['client_user_id']; - $params['family_id'] = $family_id; - $params['status'] = 1; - $order_inquiry_case = OrderInquiryCase::getEndOrderInquiryCaseOne($params,$order_inquiry_params); - - if (empty($order_inquiry_case)){ - return success(''); - } - - $order_inquiry_case = $order_inquiry_case->toArray(); - - if (!empty($order_inquiry_case['order_inquiry'])){ - if ($order_inquiry_case['order_inquiry']['inquiry_type'] == 4){ - // 问诊购药存在用药意向 - $CaseService = new CaseService(); - $inquiry_case_product = $CaseService->getCaseProductlist($order_inquiry_case['inquiry_case_id']); - } - unset($order_inquiry_case['order_inquiry']); - } - - // 复诊凭证 - if (!empty($order_inquiry_case['diagnose_images'])){ - $diagnose_images = explode(',',$order_inquiry_case['diagnose_images']); - foreach ($diagnose_images as &$item){ - $item = addAliyunOssWebsite($item); - } - - $order_inquiry_case['diagnose_images'] = $diagnose_images; - } - - $order_inquiry_case['product'] = $inquiry_case_product ?? []; - - return success($order_inquiry_case); - } -} \ No newline at end of file diff --git a/config/routes.php b/config/routes.php index 4d5666b..6944ccb 100644 --- a/config/routes.php +++ b/config/routes.php @@ -20,7 +20,6 @@ use App\Controller\InquiryController; use App\Controller\LoginController; use App\Controller\CodeController; use App\Controller\MessageNoticeController; -use App\Controller\PatientCaseController; use App\Controller\PatientCenterController; use App\Controller\PatientDoctorController; use App\Controller\PatientFamilyController; @@ -336,12 +335,6 @@ Router::addGroup('/patient', function () { }); }); - // 病例 - Router::addGroup('/case', function () { - // 获取患者最后一份问诊病例-废弃 - Router::get('/last/{family_id:\d+}', [PatientCaseController::class, 'getLastCase']); - }); - // 药品 Router::addGroup('/product', function () { // 购物车