移除重复的在线下载记录
This commit is contained in:
parent
c850947982
commit
0e32d06423
|
@ -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'));
|
||||
|
|
Loading…
Reference in New Issue