更新可视化数据排序方式以及修正首页链接

This commit is contained in:
wlx 2014-06-17 15:01:30 +00:00
parent 33229f30a9
commit b4e46a232f
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,6 @@ $this->headTitle()->setSeparator(' - ');
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">离线数据服务记录最近20个</a></li> <li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">离线数据服务记录最近20个</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/request">如何从数据中心申请数据</a></li> <li>-&nbsp;&nbsp;&nbsp;<a href="/data/request">如何从数据中心申请数据</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/submit">如何在数据中心发布数据</a></li> <li>-&nbsp;&nbsp;&nbsp;<a href="/data/submit">如何在数据中心发布数据</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/visual">数据可视化</a></li>
</ul> </ul>
</div> </div>

View File

@ -115,7 +115,8 @@ class Visual
{ {
$sql = "SELECT * FROM {$this->metadataTable} md $sql = "SELECT * FROM {$this->metadataTable} md
LEFT JOIN {$this->mainTable} v ON v.uuid = md.uuid LEFT JOIN {$this->mainTable} v ON v.uuid = md.uuid
WHERE v.uuid IS NOT NULL"; WHERE v.uuid IS NOT NULL
order by v.ts_changed desc";
$rs = $this->db->query($sql); $rs = $this->db->query($sql);
return $rs->fetchAll(\PDO::FETCH_ASSOC); return $rs->fetchAll(\PDO::FETCH_ASSOC);