Zhouzhendong 5 лет назад
Родитель
Сommit
13b76509fd
1 измененных файлов с 4 добавлено и 18 удалено
  1. 4 18
      app/Http/Controllers/TestController.php

+ 4 - 18
app/Http/Controllers/TestController.php

@@ -144,7 +144,7 @@ class TestController extends Controller
         $models = Waybill::query()->whereNotNull("wms_bill_number")->whereNotIn("status",['已完结','无模型'])->get();
         foreach ($models as $model){
             $order = Order::query()->where("code",$model->wms_bill_number)->first();
-            if ($order)$model->update(["order_id",$order->id]);
+            if ($order)$model->update(["order_id"=>$order->id]);
         }
     }
     public function zzd(){
@@ -158,29 +158,15 @@ class TestController extends Controller
             ],
             "B管理"=>[]
         ];
-        $authorities = [
+        /*$authorities = [
             "A管理"=>[
-                "A二级"=>[
+                "A二级"=>[9
                     "A三级"=>[
                         "A四级"
                     ]
                 ]
             ]
-        ];
-        dd($authorities);
-    }
-
-    public function test1(){
-        $cityIds = [2];
-        $parovince = "北京";
-        $waybills = Waybill::query()->where(function ($query)use($cityIds,$parovince){
-            /** @var Builder $query */
-            $query->whereIn('destination_city_id',$cityIds)->orWhereHas("order",function ($query)use($province){
-                /** @var Builder $query */
-                $query->where("province","like",$province."%");
-            });
-        })->get();
-        dd($waybills);
+        ];*/
     }
 
     public function syncWeight()