|
@@ -100,7 +100,23 @@ class CameraApiController extends BaseController
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- $mine_all = DB::table('mine_list')->where('deleted_at',null)->whereNotIn('id',$ydjk_list)->get();//所有区域
|
|
|
|
|
|
+ $xczyd = DB::table('mine_list')->where('title','现场作业点')->where('deleted_at',null)->get();
|
|
|
|
+ $xczyd_list = [];
|
|
|
|
+ if(count($xczyd) > 0){
|
|
|
|
+ for($i=0;$i<count($xczyd);$i++){
|
|
|
|
+ array_push($xczyd_list,$xczyd[$i]->id);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $xczyd_son = DB::table('mine_list')->whereIn('parent_id',$xczyd_list)->where('deleted_at',null)->get();
|
|
|
|
+ if(count($xczyd_son) > 0){
|
|
|
|
+ for($i=0;$i<count($xczyd_son);$i++){
|
|
|
|
+ array_push($xczyd_list,$xczyd_son[$i]->id);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $mine_all = DB::table('mine_list')->where('deleted_at',null)->whereNotIn('id',$ydjk_list)->whereNotIn('id',$xczyd_list)->get();//所有区域
|
|
|
|
|
|
$mine_ningmei = [];//宁煤集团所有区域
|
|
$mine_ningmei = [];//宁煤集团所有区域
|
|
foreach($mine_all as $k=>$v){
|
|
foreach($mine_all as $k=>$v){
|