修复计数不准的问题
This commit is contained in:
parent
4f5ccf02d7
commit
055b5a6af2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue