1
This commit is contained in:
parent
0017661432
commit
1c240fc0c8
@ -16,6 +16,7 @@ use App\Model\PatientFamilyHealth;
|
|||||||
use App\Model\PatientFamilyPersonal;
|
use App\Model\PatientFamilyPersonal;
|
||||||
use App\Model\User;
|
use App\Model\User;
|
||||||
use App\Model\UserDoctor;
|
use App\Model\UserDoctor;
|
||||||
|
use App\Utils\Log;
|
||||||
use Hyperf\DbConnection\Db;
|
use Hyperf\DbConnection\Db;
|
||||||
use Hyperf\Redis\Redis;
|
use Hyperf\Redis\Redis;
|
||||||
|
|
||||||
@ -297,6 +298,13 @@ class PatientCaseService extends BaseService
|
|||||||
$redis = $this->container->get(Redis::class);
|
$redis = $this->container->get(Redis::class);
|
||||||
$redis_key = "patient_family_inquiry_case_unfilled_fields_" . $order_inquiry_id;
|
$redis_key = "patient_family_inquiry_case_unfilled_fields_" . $order_inquiry_id;
|
||||||
$redis_value = $redis->get($redis_key);
|
$redis_value = $redis->get($redis_key);
|
||||||
|
|
||||||
|
// 缓存
|
||||||
|
if (!empty($redis_value)){
|
||||||
|
dump($redis_value);
|
||||||
|
$redis_value = json_decode($redis_value,true);
|
||||||
|
}
|
||||||
|
|
||||||
}catch (\Throwable $e){
|
}catch (\Throwable $e){
|
||||||
return fail();
|
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)){
|
if (!empty($redis_value)){
|
||||||
$redis_value = json_decode($redis_value,true);
|
|
||||||
if (array_key_exists($field,$redis_value)){
|
if (array_key_exists($field,$redis_value)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user