字段错误修复

This commit is contained in:
2024-12-05 16:01:04 +08:00
parent c7c4e5421c
commit 98bf7cf699

View File

@@ -42,9 +42,9 @@ class RegisterController extends BaseAdminController
])->orderBy(['r.id' => SORT_DESC]);
}
$patient = $get['patient_name'];
$mobile = $get['mobile'];
$doctor = $get['doctor_name'];
$patient = $get['patient_name']?? '';
$mobile = $get['mobile']?? '';
$doctor = $get['doctor_name']?? '';
$query->joinWith(['patient' => function ($p) use ($patient, $mobile) {
$p->alias('p');
if (!empty($patient)) {//患者