haozi 4 lat temu
rodzic
commit
42ca178eee
1 zmienionych plików z 16 dodań i 0 usunięć
  1. 16 0
      app/Http/Controllers/TestController.php

+ 16 - 0
app/Http/Controllers/TestController.php

@@ -579,4 +579,20 @@ sql;
         ValueStore::query()->where('name','last_order_sync_task_start_at')->update(['value' => '2021-10-12 06:23:37']);
         ValueStore::query()->where('name','last_order_sync_task_end_at')->update(['value' => '2021-10-12 06:23:38']);
     }
+
+    public function testLabor()
+    {
+        $laborReport=LaborReport::query()
+            ->where('created_at','like','2021-10-12%')
+            ->where('name','张诗颖')
+           ->first();
+
+        $laborReport->update(['check_in_at'=>'2021-10-12 09:30:00']);
+        LaborReportStatus::query()
+            ->where('labor_report_id',$laborReport->id)
+            ->where('status','未审核')
+            ->update(['created_at'=>'2021-10-12 09:30:00']);
+        dd('ok');
+
+    }
 }