Zhouzhendong 5 lat temu
rodzic
commit
231db08f30
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      app/Http/Controllers/TestController.php

+ 5 - 5
app/Http/Controllers/TestController.php

@@ -177,16 +177,16 @@ class TestController extends Controller
     public function restoreResetInstantBill()
     {
         ini_set('max_execution_time', 2500);
-        foreach (OwnerFeeDetail::query()->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"])->cursor() as $detail){
+        foreach (OwnerFeeDetail::query()->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"])->cursor() as $detail){
             dispatch(new ResetInstantBill($detail));
         }
     }
     public function restoreResetInstantBillOrder()
     {
         ini_set('max_execution_time', 2500);
-        $orders = Order::query()->where("wms_status","订单完成")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"])
+        $orders = Order::query()->where("wms_status","订单完成")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"])
             ->whereNotIn("id",OwnerFeeDetail::query()->select("outer_id")->where("outer_table_name","orders")
-                ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"]))->get();
+                ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"]))->get();
         foreach ($orders->chunk(50) as $or){
             dispatch(new OrderCreateInstantBill($or));
         }
@@ -194,9 +194,9 @@ class TestController extends Controller
     public function restoreResetInstantBillStore()
     {
         ini_set('max_execution_time', 2500);
-        $stores = Store::query()->where("status","已入库")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"])
+        $stores = Store::query()->where("status","已入库")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"])
             ->whereNotIn("id",OwnerFeeDetail::query()->select("outer_id")->where("outer_table_name","stores")
-                ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"]))->get();
+                ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"]))->get();
         foreach ($stores->chunk(50) as $st){
             dispatch(new OrderCreateInstantBill($st));
         }