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

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

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