From 04ebe29d8d60f2314665690611de69722b9f5394 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 11 Jun 2014 07:45:06 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=9C=A8=E7=BA=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=B8=8B=E8=BD=BD=E8=AE=B0=E5=BD=95=E7=9A=84=E5=88=86?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DownController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index b2c0bcec..8f9b0617 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -1031,7 +1031,7 @@ class Admin_DownController extends Zend_Controller_Action { $select=$this->db->select(); $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)') ->order('o.id desc'); $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 from onlineapp as o 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=?"; $result =$this->db->query($sql,$show); $rows = $result->fetch();