소스 검색

改约操作

whitefang 1 년 전
부모
커밋
ca36d5bded
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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,