|
@@ -7,7 +7,8 @@ use catcher\CatchResponse;
|
|
|
use catcher\base\CatchController;
|
|
|
use Aliyun\OTS\OTSClient;
|
|
|
|
|
|
-use catchAdmin\device\model\Device as deviceModel;
|
|
|
+
|
|
|
+use catchAdmin\hydraulic\model\Hydraulic as deviceModel;
|
|
|
use catchAdmin\fences\model\Fences as fencesModel;
|
|
|
use think\facade\Db;
|
|
|
use think\facade\Env;
|
|
@@ -55,25 +56,7 @@ class RouteMap extends CatchController
|
|
|
// var_dump($list);
|
|
|
return CatchResponse::success($list);
|
|
|
}
|
|
|
- /**
|
|
|
- * 查询告警列表
|
|
|
- * @time 2021年05月24日
|
|
|
- * @return \think\response\Json
|
|
|
- */
|
|
|
- public function queryAlarmList(Request $request): \think\Response
|
|
|
- {
|
|
|
- $list=$this->deviceModel->queryAlarmList();
|
|
|
-
|
|
|
-
|
|
|
- foreach($list as &$item){
|
|
|
- if($item['online_time']<$item['wifi_online_time']){
|
|
|
- $item['longitude']=$item['wifi_longitude'];
|
|
|
- $item['latitude']=$item['wifi_latitude'];
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- return CatchResponse::paginate($list);
|
|
|
- }
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @time 2021年05月24日
|
|
@@ -84,15 +67,7 @@ class RouteMap extends CatchController
|
|
|
return CatchResponse::success($this->deviceModel->queryLocationList());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- *
|
|
|
- * @time 2021年05月24日
|
|
|
- * @return \think\response\Json
|
|
|
- */
|
|
|
- public function queryAlarmLocationList(Request $request): \think\Response
|
|
|
- {
|
|
|
- return CatchResponse::success($this->deviceModel->queryAlarmLocationList());
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
/**
|