|
|
@@ -124,9 +124,9 @@ class TestController extends Controller
|
|
|
public function test()
|
|
|
{
|
|
|
$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);
|
|
|
- StationTask::query()->where("status","==",'待处理')
|
|
|
+ StationTask::query()->where("status",'待处理')
|
|
|
->whereIn("station_id",$s)->update(["status"=>"完成"]);
|
|
|
StationTaskMaterialBox::query()->whereIn("station_task_id",$t)->update(["status"=>"完成"]);
|
|
|
dd("OK");
|