正在显示
1 个修改的文件
包含
39 行增加
和
0 行删除
| @@ -259,4 +259,43 @@ class Index extends Api | @@ -259,4 +259,43 @@ class Index extends Api | ||
| 259 | $res=json_decode($res,true); | 259 | $res=json_decode($res,true); |
| 260 | return $this->success($res['message'],$res['data']); | 260 | return $this->success($res['message'],$res['data']); |
| 261 | } | 261 | } |
| 262 | + | ||
| 263 | + //获得水价列表 | ||
| 264 | + public function insPriceList(){ | ||
| 265 | + $pageSize= $this->request->param('pageSize',""); | ||
| 266 | + $pageNo= $this->request->param('pageNo',""); | ||
| 267 | + $user=new User(); | ||
| 268 | + $token=$user->uimsApitoken(); | ||
| 269 | + $url="http://121.37.218.20:9011/data_api/v1/insPriceList"; | ||
| 270 | + $data=[ | ||
| 271 | + "pageSize"=>$pageSize, | ||
| 272 | + "pageNo"=>$pageNo, | ||
| 273 | + ]; | ||
| 274 | + $res =HttpHelper::postheader($url,$data,"",$token); | ||
| 275 | + $res=json_decode($res,true); | ||
| 276 | + return $this->success($res['message'],$res['data']); | ||
| 277 | + } | ||
| 278 | + //获得水价详情 | ||
| 279 | + public function insPriceOne(){ | ||
| 280 | + $id= $this->request->param('modelCode',""); | ||
| 281 | + $user=new User(); | ||
| 282 | + $token=$user->uimsApitoken(); | ||
| 283 | + $url="http://121.37.218.20:9011/data_api/v1/insPriceOne"; | ||
| 284 | + $data=[ | ||
| 285 | + "modelCode"=>$id | ||
| 286 | + ]; | ||
| 287 | + $res =HttpHelper::getheader($url,$data,"",$token); | ||
| 288 | + $res=json_decode($res,true); | ||
| 289 | + return $this->success($res['message'],$res['data']); | ||
| 290 | + } | ||
| 291 | + //拖欠水费总数统计 | ||
| 292 | + public function insDueWaterFeeTotal(){ | ||
| 293 | + $user=new User(); | ||
| 294 | + $token=$user->uimsApitoken(); | ||
| 295 | + $url="http://121.37.218.20:9011/data_api/v1/insDueWaterFeeTotal"; | ||
| 296 | + | ||
| 297 | + $res =HttpHelper::postheader($url,"","",$token); | ||
| 298 | + $res=json_decode($res,true); | ||
| 299 | + return $this->success($res['message'],$res['data']); | ||
| 300 | + } | ||
| 262 | } | 301 | } |
-
请 注册 或 登录 后发表评论