src/DB/SQLAssembler/SQLAssembler.php
private function arrayToMultiAddFormat(array $data)
    {
        $fields = $values = array();
        if (!empty($data)) {
            while ($d = array_shift($data)) {
                $keys = array_keys($d);
                if (empty($fields)) {
                    $fields = $keys;
                } elseif ($keys !== $fields) {
                    continue;
                }

                $values[] = array_values($d);
            }
        }

        return array('fields' => $fields, 'values' => $values);
    }
private function arrayToMultiAddFormat(array $data)
    {
        $fields = $values = array();
        if (!empty($data)) {
            while ($d = array_shift($data)) {
                $keys = array_keys($d);
                if (empty($fields)) {
                    $fields = $keys;
                } elseif ($keys !== $fields) {
                    continue;
                }

                $values[] = array_values($d);
            }
        }

        return array('fields' => $fields, 'values' => $values);
    }
将数组格式化成批量添加的格式

@param array $data
@return array