From 055b5a6af259165badd25915f709bd2dca00c2a4 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 9 Jan 2014 12:27:07 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A1=E6=95=B0=E4=B8=8D?= =?UTF-8?q?=E5=87=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/ServiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index baed5293..a8301e89 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -1463,7 +1463,7 @@ class ServiceController extends Zend_Controller_Action echo 0; return; } - $sql = "select count(md.id) as total from mdref mr + $sql = "select count(distinct md.id) as total from mdref mr right join normalmetadata md on md.uuid=mr.uuid where mr.refid=$id"; $rs = $this->db->query($sql);