作者 赵彬吉

UPDATE

... ... @@ -57,8 +57,9 @@ class Test extends Command
public function handle()
{
$i=0;
while (true){
$list = SyncSubmitTaskModel::where('project_id', 0)->limit(100)->get();
$list = SyncSubmitTaskModel::where('project_id', 0)->limit(1000)->get();
if(!$list){
exit;
}
... ... @@ -67,6 +68,8 @@ class Test extends Command
$item->project_id = $project->id;
$item->save();
}
echo $i . PHP_EOL;
$i++;
}
exit;
... ...