cqp 1 день назад
Родитель
Сommit
b13e3d5053
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Console/Commands/U8SettleInventory.php

+ 1 - 1
app/Console/Commands/U8SettleInventory.php

@@ -126,7 +126,7 @@ class U8SettleInventory extends Command
             ->where('crt_time', $time)
             ->where('status', SyncTempRecordProduct::status_zero) // 只处理待处理的数据
             ->orderBy('id')
-            ->chunkById(500, function ($records) {
+            ->chunkById(200, function ($records) {
                 $batchData = [];
                 $record_ids = [];
                 $processedItems = []; // 用于批量维护快照