按默认排序进行排序。
This commit is contained in:
parent
0ad5649b04
commit
48ebc07711
|
@ -548,7 +548,7 @@ class DataController extends Zend_Controller_Action
|
||||||
$row=$db->fetchRow($sql);
|
$row=$db->fetchRow($sql);
|
||||||
if ($row) $this->view->doc=$row['linkage'];
|
if ($row) $this->view->doc=$row['linkage'];
|
||||||
//相关用户
|
//相关用户
|
||||||
$sql="select p.individual,p.organisation,r.role from role r left join responsible p on r.resid=p.id where r.uuid=? order by r.role,p.individual";
|
$sql="select p.individual,p.organisation,r.role from role r left join responsible p on r.resid=p.id where r.uuid=? order by r.role,r.id";
|
||||||
$this->view->authors=$db->fetchAll($sql,array($uuid));
|
$this->view->authors=$db->fetchAll($sql,array($uuid));
|
||||||
//相关元数据,根据同名关键词实现
|
//相关元数据,根据同名关键词实现
|
||||||
//$sql="select distinct(md.uuid),md.title from keyword kw left join metadata md on kw.id=md.id where kw.keyword in (select k.keyword from keyword k left join metadata m on k.id=m.id where m.id=? and k.keytype='theme') and kw.id<>? limit 10";
|
//$sql="select distinct(md.uuid),md.title from keyword kw left join metadata md on kw.id=md.id where kw.keyword in (select k.keyword from keyword k left join metadata m on k.id=m.id where m.id=? and k.keytype='theme') and kw.id<>? limit 10";
|
||||||
|
|
Loading…
Reference in New Issue