core/Mysql.php
public function getList(string $sql, $args = null, $fetch_style = null, $fetch_argument = null, array $ctor_args = null)
    {
        if ($fetch_style === null) {
            $fetch_style = PDO::FETCH_ASSOC;
        }
        $stm = $this->execute($sql, $args);
        if ($fetch_style !== null && $fetch_argument !== null && $ctor_args !== null) {
            $rows = $stm->fetchAll($fetch_style, $fetch_argument, $ctor_args);
        } elseif ($fetch_style !== null && $fetch_argument !== null) {
            $rows = $stm->fetchAll($fetch_style, $fetch_argument);
        } elseif ($fetch_style !== null) {
            $rows = $stm->fetchAll($fetch_style);
        } else {
            $rows = $stm->fetchAll();
        }
        $stm->closeCursor();
        return $rows;
    }
public function getList(string $sql, $args = null, $fetch_style = null, $fetch_argument = null, array $ctor_args = null)
    {
        if ($fetch_style === null) {
            $fetch_style = PDO::FETCH_ASSOC;
        }
        $stm = $this->execute($sql, $args);
        if ($fetch_style !== null && $fetch_argument !== null && $ctor_args !== null) {
            $rows = $stm->fetchAll($fetch_style, $fetch_argument, $ctor_args);
        } elseif ($fetch_style !== null && $fetch_argument !== null) {
            $rows = $stm->fetchAll($fetch_style, $fetch_argument);
        } elseif ($fetch_style !== null) {
            $rows = $stm->fetchAll($fetch_style);
        } else {
            $rows = $stm->fetchAll();
        }
        $stm->closeCursor();
        return $rows;
    }
获取多行记录
@param string $sql
@param null $args
@param null $fetch_style
@param null $fetch_argument
@param array|null $ctor_args
@return array
@throws MysqlException