src/Service/DB/Select.php
public function count()
    {
        $columns = $this->columns;
        $this->columns = [new Expr('count(1)')];

        $count = $this->execute()->getCol();

        $this->columns = $columns;

        return $count;
    }
public function count()
    {
        $columns = $this->columns;
        $this->columns = [new Expr('count(1)')];

        $count = $this->execute()->getCol();

        $this->columns = $columns;

        return $count;
    }
查询当前查询条件在表内的行数.

@return int