From 9dfe44f539b0d3d658f3f4ca61079e990693e00e Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Fri, 24 Jul 2026 15:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=20=E5=8F=B7=E6=BA=90?= =?UTF-8?q?=E6=98=8E=E7=BB=86=20=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../API/Admin/YeWu/PlanListController.php | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanListController.php b/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanListController.php index aa0b0db..59d9f41 100644 --- a/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanListController.php +++ b/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanListController.php @@ -200,19 +200,9 @@ public function GetEnablePlan() $episodeid = request('episodeid'); $appointment_type = request('appointment_type'); //预约类型 $appointment_date = request('date'); //预约日期 - $scope = request('scope', 'all'); - - $userDeptId = 0; - if ($scope === 'department') { - $userid = request('do_user'); - if ($userid) { - $userInfo = DB::table('users')->where(['id' => $userid])->first(); - $userDeptId = $userInfo->department_id ?? 0; - } - } $service = new PlanListService(); - return $service->GetEnablePlan($regnum, $entrustid, $episodeid, $appointment_type, $appointment_date, $scope, $userDeptId); + return $service->GetEnablePlan($regnum, $entrustid, $episodeid, $appointment_type, $appointment_date); } //最优时间/单天全检 分配 @@ -224,19 +214,9 @@ public function GetOptimalPlan() $episodeid = request('episodeid'); $appointment_type = request('appointment_type'); $items = request('items'); - $scope = request('scope', 'all'); - - $userDeptId = 0; - if ($scope === 'department') { - $userid = request('do_user'); - if ($userid) { - $userInfo = DB::table('users')->where(['id' => $userid])->first(); - $userDeptId = $userInfo->department_id ?? 0; - } - } $service = new PlanListService(); - return $service->GetOptimalPlan($type, $regnum, $entrustid, $episodeid, $appointment_type, $items, $scope, $userDeptId); + return $service->GetOptimalPlan($type, $regnum, $entrustid, $episodeid, $appointment_type, $items); } //获取最近可用的,计划 日期