|
|
@@ -621,7 +621,7 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
->field(['id', 'work_sn','real_name','mobile', 'address', 'title', 'appointment_time'])
|
|
|
->order(['appointment_time' => 'asc'])//上门时间排序
|
|
|
->select()->each(function (&$item){
|
|
|
- $item['last_appointment_time'] = ServiceWorkAppointmentLog::where('work_id',$item['id'])->order('id desc')->value('last_appointment_time');
|
|
|
+ $item['last_appointment_time'] = date('Y-m-d hH:i:s',ServiceWorkAppointmentLog::where('work_id',$item['id'])->order('id desc')->value('last_appointment_time'));
|
|
|
})
|
|
|
->toArray();
|
|
|
}
|