From 83982cac9f53d24e40e836e9cebb23b8ac308c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=9F=E5=B7=9D=E4=B8=9C?= Date: Fri, 9 May 2025 15:06:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B7=A5=E4=BD=9C=E5=8F=B0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/services/OrderDispatchService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/services/OrderDispatchService.php b/application/services/OrderDispatchService.php index 89cb5c6..0d977b6 100644 --- a/application/services/OrderDispatchService.php +++ b/application/services/OrderDispatchService.php @@ -50,14 +50,15 @@ class OrderDispatchService extends BaseService */ public function countWorkbenchOrder(int $workerId) { + $needVisit = $this->getWorkbenchOrderModel($workerId, 'need_visit')->count(); return [ 'pending' => $this->getWorkbenchOrderModel($workerId, 'pending')->count(), - 'need_visit' => $this->getWorkbenchOrderModel($workerId, 'need_visit')->count(), + 'need_visit' => $needVisit, 'ongoing' => $this->getWorkbenchOrderModel($workerId, 'ongoing')->count(), 'finished' => $this->getWorkbenchOrderModel($workerId, 'finished')->count(), 'today' => $this->getWorkbenchOrderModel($workerId, 'need_visit', 'today')->count(), 'tomorrow' => $this->getWorkbenchOrderModel($workerId, 'need_visit', 'tomorrow')->count(), - 'all' => $this->getWorkbenchOrderModel($workerId, 'need_visit', 'all')->count(), + 'all' => $needVisit, ]; }