Browse Source

改约操作

whitefang 1 year ago
parent
commit
ca36d5bded
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/api/logic/ServiceOrderLogic.php

+ 4 - 0
app/api/logic/ServiceOrderLogic.php

@@ -790,6 +790,10 @@ class ServiceOrderLogic extends BaseLogic
             }
             $work->appointment_time = strtotime($params['appointment_time']);
 
+            //更新工单未确认上门的状态
+            $work->work_status = 3;
+            $work->user_confirm_status = 0;
+
             ServiceWorkAppointmentLog::create([
                 'work_id'=>$work->id,
                 'last_appointment_time'=>$work->appointment_time,