Example #1
0
 /**
  * [totalCount 返回用户总数量]
  * @return [type] [description]
  */
 public static function totalCount()
 {
     $tmp_pdo = PDO_MySQL::getInstance();
     $result = $tmp_pdo->count(self::TABLE_NAME, array());
     $tmp_pdo = null;
     return $result;
 }
Example #2
0
 /**
  * [businessCountList 根据行业统计数量]
  * @return [type] [description]
  */
 public static function businessCountList()
 {
     $tmp_pdo = PDO_MySQL::getInstance();
     $conditions = array('fields' => 'business, count(*) as business_count', 'sort' => array('business_count' => 0), 'group_by' => 'business', 'limit' => 11);
     $result = $tmp_pdo->getAll(self::TABLE_NAME, $conditions);
     $tmp_pdo = null;
     return $result;
 }