Selaa lähdekoodia

传递错误更新

Zhouzhendong 5 vuotta sitten
vanhempi
commit
23c0cf3aef
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/Http/Controllers/TestController.php

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

@@ -124,9 +124,9 @@ class TestController extends Controller
     public function test()
     public function test()
     {
     {
         $s = Station::query()->select("id")->where("parent_id",6);
         $s = Station::query()->select("id")->where("parent_id",6);
-        $t = StationTask::query()->select("id")->where("status","==",'待处理')
+        $t = StationTask::query()->select("id")->where("status",'待处理')
             ->whereIn("station_id",$s);
             ->whereIn("station_id",$s);
-        StationTask::query()->where("status","==",'待处理')
+        StationTask::query()->where("status",'待处理')
             ->whereIn("station_id",$s)->update(["status"=>"完成"]);
             ->whereIn("station_id",$s)->update(["status"=>"完成"]);
         StationTaskMaterialBox::query()->whereIn("station_task_id",$t)->update(["status"=>"完成"]);
         StationTaskMaterialBox::query()->whereIn("station_task_id",$t)->update(["status"=>"完成"]);
         dd("OK");
         dd("OK");