为气象数据可视化添加了按时间排序的规则
This commit is contained in:
parent
f73cf609c6
commit
893447ca49
|
@ -42,7 +42,7 @@ class VisualController extends Zend_Controller_Action
|
||||||
function getMeteorologyValueByStation($sid,$field)
|
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 = $this->dbh->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
|
Loading…
Reference in New Issue