소스 검색

工程师确定新的预约时间

whitefang 1 년 전
부모
커밋
feb106c781
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/adminapi/logic/works/ServiceWorkLogic.php

+ 1 - 1
app/adminapi/logic/works/ServiceWorkLogic.php

@@ -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();
     }