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']; }