移除重复的在线下载记录

This commit is contained in:
wlx 2011-12-21 03:47:33 +00:00
parent c850947982
commit 0e32d06423
1 changed files with 2 additions and 1 deletions

View File

@ -393,7 +393,8 @@ class Admin_DownController extends Zend_Controller_Action
{
$select=$this->db->select();
$select->from('onlineapp as o',array('id','userid','unit','username','ts_created','project'))
->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid'))
->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid'))
->where('o.id in (select distinct(onlineappid) from dataorder)')
->order('o.id desc');
$paginator = Zend_Paginator::factory($select);
$paginator->setCurrentPageNumber($this->_getParam('page'));