实现在线数据下载记录的分平台控制
This commit is contained in:
parent
90b75f1495
commit
04ebe29d8d
|
@ -1031,7 +1031,7 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('onlineapp as o',array('id','userid','unit','username','ts_created','project','project_id','project_type','project_title'))
|
$select->from('onlineapp as o',array('id','userid','unit','username','ts_created','project','project_id','project_type','project_title'))
|
||||||
->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid'))
|
->join($submd.' as m', 'o.uuid = m.uuid', array('title','uuid'))
|
||||||
->where('o.id in (select distinct(onlineappid) from dataorder)')
|
->where('o.id in (select distinct(onlineappid) from dataorder)')
|
||||||
->order('o.id desc');
|
->order('o.id desc');
|
||||||
$paginator = Zend_Paginator::factory($select);
|
$paginator = Zend_Paginator::factory($select);
|
||||||
|
@ -1064,7 +1064,7 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
$sql ="select o.*,u.username as uname,u.id as uid,m.title,m.uuid
|
$sql ="select o.*,u.username as uname,u.id as uid,m.title,m.uuid
|
||||||
from onlineapp as o
|
from onlineapp as o
|
||||||
left join users as u on u.id = o.userid
|
left join users as u on u.id = o.userid
|
||||||
left join metadata as m on o.uuid = m.uuid
|
left join $submd as m on o.uuid = m.uuid
|
||||||
where o.id=?";
|
where o.id=?";
|
||||||
$result =$this->db->query($sql,$show);
|
$result =$this->db->query($sql,$show);
|
||||||
$rows = $result->fetch();
|
$rows = $result->fetch();
|
||||||
|
|
Loading…
Reference in New Issue