src/db/BuildSql.php
public function count($value = null)
    {
        if ($value) {
            $this->field($value);
        }

        $this->bulidSql('COUNT');

        $result = $this->query();
        $data   = $result->fetchColumn();

        return (int) $data;

    }
public function count($value = null)
    {
        if ($value) {
            $this->field($value);
        }

        $this->bulidSql('COUNT');

        $result = $this->query();
        $data   = $result->fetchColumn();

        return (int) $data;

    }
统计总条数
@date   2018-07-13T11:01:24+0800
@author ChenMingjiang
@param  [type]                   $value [description]
@return [type]                          [description]