Ver Fonte

添加测试方法

haozi há 5 anos atrás
pai
commit
c4d2835287
1 ficheiros alterados com 9 adições e 8 exclusões
  1. 9 8
      app/Http/Controllers/TestController.php

+ 9 - 8
app/Http/Controllers/TestController.php

@@ -1265,13 +1265,14 @@ where (commodities.owner_id,commodity_barcodes.code) in (select commodities.owne
         ValueStore::query()->where('name','order_last_updated_sync_at')->update(['value'=>'2020-12-22 09:00:00']);
     }
 
-    public function hz(){
-       $ownerReportTask= new CreateOwnerReport();
-       $ownerReportTask->handle();
-       $ownerBillReportTask= new CreateOwnerBillReport();
-       $ownerBillReportTask->handle();
-       $ownerAreaReportTask=new CreateOwnerAreaReport();
-       $ownerAreaReportTask->handle();
-
+    public function testHz(){
+        dump('start'.Carbon::now()->toDateTimeString());
+        $ownerAreaReportTask=new CreateOwnerAreaReport();
+        $ownerAreaReportTask->handle();
+        $ownerBillReportTask= new CreateOwnerBillReport();
+        $ownerBillReportTask->handle();
+        $ownerReportTask= new CreateOwnerReport();
+        $ownerReportTask->handle();
+        dump('end'.Carbon::now()->toDateTimeString());
     }
 }