瀏覽代碼

修复历史即时账单

Zhouzhendong 4 年之前
父節點
當前提交
ed36ab5f41
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      app/Http/Controllers/TestController.php

+ 2 - 6
app/Http/Controllers/TestController.php

@@ -143,16 +143,12 @@ class TestController extends Controller
     public function test()
     public function test()
     {
     {
         ini_set('max_execution_time', 0);
         ini_set('max_execution_time', 0);
-        $orderId = [];
         Order::query()->whereBetween("wms_edittime",["2021-06-01 00:00:00","2021-06-30 23:59:59"])
         Order::query()->whereBetween("wms_edittime",["2021-06-01 00:00:00","2021-06-30 23:59:59"])
             ->whereNotIn("id",OwnerFeeDetail::query()->select("outer_id")
             ->whereNotIn("id",OwnerFeeDetail::query()->select("outer_id")
                 ->whereBetween("worked_at",["2021-06-01 00:00:00","2021-06-30 23:59:59"])
                 ->whereBetween("worked_at",["2021-06-01 00:00:00","2021-06-30 23:59:59"])
-                ->where("outer_table_name","orders"))->get()->each(function ($order)use(&$orderId){
-                $orderId[] = $order->id;
+                ->where("outer_table_name","orders"))->get()->each(function ($order){
+                dispatch(new OrderCreateInstantBill($order));
             });
             });
-        dd($orderId,OwnerFeeDetail::query()->select("outer_id")
-            ->whereIn("outer_id",$orderId)
-            ->where("outer_table_name","orders")->get()->toArray());
     }
     }
     public function orderCreateBill()
     public function orderCreateBill()
     {
     {