field($field); if (empty($join) === false) { $result = $result->alias('a'); foreach ($join as $k => $v) { $result = $result->join($k, $v); } } if (empty($where) === false) { $result = $result->where($where); } $result = $result->limit($offset, $limit)->order('start_time', 'desc')->select(); return $result; }//end selectServiceLog() /** * 数据总数 * * @access public * @param mixed $where 条件 * @return array 返回类型 */ public function countServiceLog($where=[]) { $result = $this; if (empty($where) === false) { $result = $result->where($where); } $result = $result->count(); return $result; }//end countServiceLog() }