From 6665c207000fa7ff27463df113629a7352b25a96 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 11 Jun 2014 07:42:44 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=94=A8=E6=88=B7=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E8=AE=B0=E5=BD=95=E7=9A=84=E5=88=86=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=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, 3 insertions(+), 1 deletion(-) diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index 59c50599..9a3d80b5 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -1079,6 +1079,7 @@ class Admin_DownController extends Zend_Controller_Action $show =(int)$this->_getParam('show'); $search = $this->_getParam('search'); $keyword = $this->view->keyword = $this->_getParam('keyword'); + $submd=$this->view->config->sub->metadata; if(empty($show)) { @@ -1086,6 +1087,7 @@ class Admin_DownController extends Zend_Controller_Action $select->from('dataorder as o','count(o.id) as num') ->join('users as u', 'u.id = o.userid', array('realname','id as uid','unit')) ->where('o.status=0 or o.status=5') + ->where("o.uuid in (select uuid from $submd)"); ->where('o.userid = u.id'); if(!empty($search) && !empty($keyword)) { @@ -1111,7 +1113,7 @@ class Admin_DownController extends Zend_Controller_Action { $select=$this->db->select(); $select->from('dataorder as o',array('id','ts_created','userid','offlineappid','onlineappid')) - ->joinLeft('metadata as m', 'o.uuid = m.uuid', array('title','uuid','filesize')) + ->joinLeft($submd.' as m', 'o.uuid = m.uuid', array('title','uuid','filesize')) ->joinLeft('users as u','u.id=o.userid',array('realname as username')) ->where('o.userid = ?', $show) ->where('o.status=0 or o.status=5')