public function act_getActionLists($condition, $sort = '', $limit = '') { $actionmodel = new ActionModel(); $filed = ' action_id,action_description,action_name,action_group_id,group_description,group_name,group_system_id'; $where = !empty($condition) && is_array($condition) ? implode(' AND ', $condition) : ''; //获取条数 if ($this->is_count === true) { $this->is_count = false; $actioncount = $actionmodel->count()->getActionLists($filed, $where); return $this->_checkReturnData($actioncount, 0); } $orderby = empty($orderby) ? '' : " ORDER BY {$sort} "; $actionlists = $actionmodel->getActionLists($filed, $where, $orderby, $limit); return $this->_checkReturnData($actionlists, array()); }