修改了离线申请的sql语句。
This commit is contained in:
parent
3aaffc12d5
commit
6e5ea71f28
|
@ -161,7 +161,12 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
//if
|
//if
|
||||||
}//reset
|
}//reset
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('offlineapp')->where('ts_approved is null')->where('pdflink is not null and status>=0')->order('ts_created desc');
|
$select ->from('offlineapp as o')
|
||||||
|
->join('dataorder as d','o.id = d.offlineappid')
|
||||||
|
->where('o.ts_approved is null')
|
||||||
|
->where('o.pdflink is not null')
|
||||||
|
->where('d.status=3')
|
||||||
|
->order('o.ts_created desc');
|
||||||
$paginator = Zend_Paginator::factory($select);
|
$paginator = Zend_Paginator::factory($select);
|
||||||
$paginator->setCurrentPageNumber($page);
|
$paginator->setCurrentPageNumber($page);
|
||||||
$paginator->setItemCountPerPage($this->view->config->page->max);
|
$paginator->setItemCountPerPage($this->view->config->page->max);
|
||||||
|
|
Loading…
Reference in New Issue