/** * TrackInquiryModel::modListCount() * 返回某个条件结果统计的总数 * @param string $where 查询条件 * @return integer 总数量 */ public static function modListCount($where) { self::initDB(); $sql = "SELECT count(*) FROM " . self::$prefix . self::$tab_wode . " WHERE {$where}"; $query = self::$dbConn->query($sql); $res = self::$dbConn->fetch_row($query); if ($res) { return $res[0]; } else { self::$errCode = 10000; self::$errMsg = "获取数据失败"; return 0; } }