From 1c240fc0c8093933585102a5858c01e84bb8dea9 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 12 Dec 2023 17:49:26 +0800 Subject: [PATCH] 1 --- app/Services/PatientCaseService.php | 34 +++++++---------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/app/Services/PatientCaseService.php b/app/Services/PatientCaseService.php index 63589c7..f9eab53 100644 --- a/app/Services/PatientCaseService.php +++ b/app/Services/PatientCaseService.php @@ -16,6 +16,7 @@ use App\Model\PatientFamilyHealth; use App\Model\PatientFamilyPersonal; use App\Model\User; use App\Model\UserDoctor; +use App\Utils\Log; use Hyperf\DbConnection\Db; use Hyperf\Redis\Redis; @@ -297,6 +298,13 @@ class PatientCaseService extends BaseService $redis = $this->container->get(Redis::class); $redis_key = "patient_family_inquiry_case_unfilled_fields_" . $order_inquiry_id; $redis_value = $redis->get($redis_key); + + // 缓存 + if (!empty($redis_value)){ + dump($redis_value); + $redis_value = json_decode($redis_value,true); + } + }catch (\Throwable $e){ return fail(); } @@ -310,34 +318,8 @@ class PatientCaseService extends BaseService } } - -// if (!empty($patient_family)){ -// if (array_key_exists($field,$patient_family->toArray())){ -// if ($patient_family[$field] !== null){ -// continue; -// } -// } -// } -// -// if (!empty($patient_family_health)){ -// if (array_key_exists($field,$patient_family_health->toArray())){ -// if ($patient_family_health[$field] !== null){ -// continue; -// } -// } -// } -// -// if (!empty($patient_family_personal)){ -// if (array_key_exists($field,$patient_family_personal->toArray())){ -// if ($patient_family_personal[$field] !== null){ -// continue; -// } -// } -// } - // 缓存 if (!empty($redis_value)){ - $redis_value = json_decode($redis_value,true); if (array_key_exists($field,$redis_value)){ continue; }