diff --git a/application/admin/controllers/StatController.php b/application/admin/controllers/StatController.php index be206306..c1a31945 100644 --- a/application/admin/controllers/StatController.php +++ b/application/admin/controllers/StatController.php @@ -18,8 +18,8 @@ class Admin_StatController extends Zend_Controller_Action (select count(id) from normalmetadata) as alldata, (select count(id) as num from dataorder where status=0) as onlinedown, (select count(id) as num from dataorder where status=5) as offlinedown, - (select count(id) as num from dataorder where offlineappid>0 and status>4) as offlinepass, - (select count(id) as num from dataorder where offlineappid>0 and status in (2,3,4)) as offlineunfinished, + (select count(id) as num from offlineapp where ts_approved is not null) as offlinepass, + (select count(id) as num from offlineapp where ts_approved is null) as offlineunfinished, (select count(id) as num from dataorder where offlineappid>0 and status=-1) as offlinedenied, (select count(id) as num from onlineapp) as onlineapp"; $this->view->stat=$this->db->fetchRow($sql); diff --git a/application/admin/views/scripts/stat/index.phtml b/application/admin/views/scripts/stat/index.phtml index 8f669f60..4401f6a7 100644 --- a/application/admin/views/scripts/stat/index.phtml +++ b/application/admin/views/scripts/stat/index.phtml @@ -15,11 +15,11 @@