From e53dc1bdd37180352ffdb9b6059e23522cdea4c8 Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Wed, 4 Jun 2025 13:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/services/OrderDispatchService.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/services/OrderDispatchService.php b/application/services/OrderDispatchService.php index d8d71a3..3fa9562 100644 --- a/application/services/OrderDispatchService.php +++ b/application/services/OrderDispatchService.php @@ -154,7 +154,7 @@ class OrderDispatchService extends BaseService try { //接单 $orderDispatch->status = $orderDispatchStatus; - + $orderDispatch->follow = 1; //拒接原因 if ($type == 'reject') { if (empty($params['reject_reason'])) { @@ -290,6 +290,7 @@ class OrderDispatchService extends BaseService $orderDispatch = $this->getOrderDispatchInfo($workerId, $orderDispatchId); $orderDispatch->status = OrderDispatch::STATUS_PLANIT; $orderDispatch->plan_time = $planTime; + $orderDispatch->follow = 1; $orderDispatch->save(); $orderDispatch->admin_user = '师傅:'. $orderDispatch->worker_name; @@ -336,6 +337,7 @@ class OrderDispatchService extends BaseService $orderDispatch->status = OrderDispatch::STATUS_CLOCK; $orderDispatch->arrive_images = $this->removeStrCdnUrl($images); $orderDispatch->arrive_time = $time; + $orderDispatch->follow = 1; $orderDispatch->save(); $orderDispatch->admin_user = '师傅:'. $orderDispatch->worker_name; @@ -390,6 +392,7 @@ class OrderDispatchService extends BaseService $orderDispatch = $this->getOrderDispatchInfo($workerId, $params['order_dispatch_id']); $orderDispatch->status = OrderDispatch::STATUS_FINISH; $orderDispatch->images = $this->removeStrCdnUrl($params['complete_images']); + $orderDispatch->follow = 2; $orderDispatch->finish_time = $time; // 材料相关 @@ -463,7 +466,7 @@ class OrderDispatchService extends BaseService $orderDispatch = $this->getOrderDispatchInfo($workerId, $params['order_dispatch_id']); $orderDispatch->is_finish_today = $params['is_finish_today']; $orderDispatch->estimated_finish_time = $params['estimated_finish_time']; - + $orderDispatch->follow = 1; if ($params['is_finish_today'] == 0) { $orderDispatch->work_progress = $params['work_progress']; }