From 9982845a1134ceac587a2eca89baef8d5800cda0 Mon Sep 17 00:00:00 2001 From: yanzai Date: Fri, 25 Jul 2025 11:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E6=97=B6=E5=8F=96=E6=B6=88bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../API/Admin/YeWu/WorkMainController.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Laravel/app/Http/Controllers/API/Admin/YeWu/WorkMainController.php b/Laravel/app/Http/Controllers/API/Admin/YeWu/WorkMainController.php index aa1e5f0..3cce419 100644 --- a/Laravel/app/Http/Controllers/API/Admin/YeWu/WorkMainController.php +++ b/Laravel/app/Http/Controllers/API/Admin/YeWu/WorkMainController.php @@ -311,11 +311,19 @@ class WorkMainController extends Controller $config=DB::table('configs')->where(['label'=>'门诊缴费超时时间'])->first(); if($config->value>0){ $currentDateTime = Carbon::now()->subHours($config->value); - $list=DB::table('s_list')->where(['list_status'=>1,'patient_type'=>1,'is_pay'=>0,'is_del'=>0,'is_nullify'=>0]) - ->where('entrust_date', '<', $currentDateTime->toDateString()) - ->orWhere(function($query) use ($currentDateTime) { - $query->whereDate('entrust_date', $currentDateTime->toDateString()) - ->whereTime('entrust_time', '<', $currentDateTime->toTimeString()); + $list=DB::table('s_list')->where([ + 'list_status' => 1, + 'patient_type' => 1, + 'is_pay' => 0, + 'is_del' => 0, + 'is_nullify' => 0, + ]) + ->where(function ($query) use ($currentDateTime) { + $query->whereDate('entrust_date', '<', $currentDateTime->toDateString()) + ->orWhere(function ($q) use ($currentDateTime) { + $q->whereDate('entrust_date', $currentDateTime->toDateString()) + ->whereTime('entrust_time', '<', $currentDateTime->toTimeString()); + }); })->get();