...
|
...
|
@@ -15,6 +15,7 @@ class Index extends Api |
|
|
protected $dam_seepagesql = "reservoir_dam_seepage_copy";//渗流sql
|
|
|
protected $dam_isotonicsql = "reservoir_dam_isotonic_copy";//渗压sql
|
|
|
protected $dam_displacementsql = "reservoir_dam_displacement_copy";//渗压sql
|
|
|
protected $reservoir_rain_flowsql = "reservoir_rain_flow";//流量sql
|
|
|
|
|
|
/**
|
|
|
* 查询水位
|
...
|
...
|
@@ -97,4 +98,22 @@ class Index extends Api |
|
|
$this->success("查询成功",$res);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 查询流量
|
|
|
* @return void
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function flow(){
|
|
|
$number=$this->request->param("number");//设备编号
|
|
|
$res=Db::name($this->reservoir_rain_flowsql)->where("number",$number)->select();
|
|
|
foreach ($res as $k=>$v){
|
|
|
$res[$k]['createtime']=date("Y-m-d H:i:s",$res[$k]['createtime']);
|
|
|
}
|
|
|
$this->success("查询成功",$res);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|