Sfoglia il codice sorgente

工单页选项卡问题

whitefang 1 anno fa
parent
commit
6603dc7964
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      app/workerapi/lists/ServiceWorkLists.php

+ 2 - 3
app/workerapi/lists/ServiceWorkLists.php

@@ -38,7 +38,7 @@ class ServiceWorkLists extends BaseWorkerDataLists
                 break;
             case 1:
                 $where[] = ['work_status','<>',1];
-                $where['service_status'] = ['in','0,1,2'];
+                $where[] = ['service_status','in','0,1,2'];
                 // 创建 DateTime 对象并设置为今天午夜
                 $startOfDay = new DateTime('today midnight');
                 // 设置为今天最后一秒
@@ -51,7 +51,7 @@ class ServiceWorkLists extends BaseWorkerDataLists
                 break;
             case 2:
                 $where[] = ['work_status','<>',1];
-                $where['service_status'] = ['in','0,1,2'];
+                $where[] = ['service_status','in','0,1,2'];
                 // 创建一个 DateTime 对象表示当前时间
                 $dateNow = new DateTime();
                 // 修改这个对象以表示明天的午夜
@@ -79,7 +79,6 @@ class ServiceWorkLists extends BaseWorkerDataLists
             ->order(['appointment_time' => 'asc'])//上门时间排序
             ->select()
             ->toArray();
-
         $this->count = ServiceWork::where($where)->count();
 
         return $list;