Explorar el Código

获取所有改约通知

whitefang hace 1 año
padre
commit
6a39c927d2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/adminapi/logic/works/ServiceWorkLogic.php

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

@@ -627,7 +627,7 @@ class ServiceWorkLogic extends BaseLogic
     public static function getAppointmentNotice($userId)
     {
         return ServiceWork::where(['master_worker_id'=>$userId,'appoint_approval'=>1])
-            ->field(['id', 'work_sn','real_name','mobile', 'address', 'title', 'appointment_time','work_status'])
+            ->field(['id', 'work_sn','real_name','mobile', 'address','work_status', 'title', 'appointment_time','work_status'])
             ->order(['appointment_time' => 'asc'])//上门时间排序
             ->select()->each(function (&$item){
                 $item['last_appointment_time'] = date('Y-m-d H:i:s',ServiceWorkAppointmentLog::where('work_id',$item['id'])->order('id desc')->value('last_appointment_time'));