getTable()} ({$columnList}) VALUES " . implode(', ', array_fill(0, count($chunk), $placeholders)); // 将数据展开填充 $values = []; foreach ($chunk as $row) { $values = array_merge($values, array_values($row)); } Db::execute($sql,$values); } Db::commit(); return $totalInserted; } catch (Exception $e) { Db::rollback(); throw new Exception('批量插入失败:' . $e->getMessage()); } } }