为气象数据可视化添加了按时间排序的规则

This commit is contained in:
Li Jianxuan 2012-07-13 09:00:27 +00:00
parent f73cf609c6
commit 893447ca49
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class VisualController extends Zend_Controller_Action
function getMeteorologyValueByStation($sid,$field)
{
$sql = "select id,station_id as sid,date,$field as v from daily_meteorological_data where station_id=$sid";
$sql = "select id,station_id as sid,date,$field as v from daily_meteorological_data where station_id=$sid ORDER BY date ASC";
$sth = $this->dbh->prepare($sql);
$sth->execute();