Procházet zdrojové kódy

获取所有改约通知

whitefang před 1 rokem
rodič
revize
900652650d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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','work_status', 'title', 'appointment_time','work_status'])
+            ->field(['id', 'work_sn','real_name','mobile', 'address', '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'));