fix sql error

This commit is contained in:
wlx 2014-06-11 09:12:21 +00:00
parent 239554b3ac
commit dd8e2cf9f3
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class Admin_StatController extends Zend_Controller_Action
(select count(id) as num from offlineapp where ts_approved is not null and id in (select offlineappid from dataorder where uuid in (select uuid from $this->submd))) as offlinepass,
(select count(id) as num from offlineapp where ts_approved is null and id in (select offlineappid from dataorder where uuid in (select uuid from $this->submd))) as offlineunfinished,
(select count(id) as num from dataorder where offlineappid>0 and status=-1 and uuid in (select uuid from $this->submd)) as offlinedenied,
(select count(id) as num from onlineapp and id in (select onlineappid from dataorder where uuid in (select uuid from $this->submd))) as onlineapp";
(select count(id) as num from onlineapp where id in (select onlineappid from dataorder where uuid in (select uuid from $this->submd))) as onlineapp";
$this->view->stat=$this->db->fetchRow($sql);
//下载量统计