|
|
@@ -793,7 +793,6 @@ class ServiceOrderLogic extends BaseLogic
|
|
|
if($work->isEmpty()){
|
|
|
throw new Exception('工单不存在');
|
|
|
}
|
|
|
- $work->appointment_time = strtotime($params['appointment_time']);
|
|
|
|
|
|
//更新工单未确认上门的状态
|
|
|
$work->work_status = 3;
|
|
|
@@ -804,6 +803,8 @@ class ServiceOrderLogic extends BaseLogic
|
|
|
'last_appointment_time'=>$work->appointment_time,
|
|
|
'this_appointment_time'=>strtotime($params['appointment_time']),
|
|
|
]);
|
|
|
+
|
|
|
+ $work->appointment_time = strtotime($params['appointment_time']);
|
|
|
$work->save();
|
|
|
Db::commit();
|
|
|
}
|