|
@@ -158,7 +158,9 @@ class UpdateHkList extends Command
|
|
|
}
|
|
|
|
|
|
//海康摄像头同步开始时间
|
|
|
+ $syn_id = DB::table('syn')->orderBy('id','desc')->pluck('id')->first();
|
|
|
$syn['hk_camera_start_time'] = date('Y-m-d H:i:s');
|
|
|
+ DB::table('syn')->update($syn)->where('id',$syn_id);
|
|
|
|
|
|
$nm_camera_time = 0;
|
|
|
foreach ($index_code_list as $key => $val) {
|
|
@@ -220,9 +222,11 @@ class UpdateHkList extends Command
|
|
|
}
|
|
|
|
|
|
$syn['nm_camera_time'] = $nm_camera_time/60;//宁煤单个区域同步时间
|
|
|
+ DB::table('syn')->update($syn)->where('id',$syn_id);
|
|
|
|
|
|
//海康摄像头同步结束时间
|
|
|
$syn['hk_camera_end_time'] = date('Y-m-d H:i:s');
|
|
|
+ DB::table('syn')->update($syn)->where('id',$syn_id);
|
|
|
|
|
|
//天地伟业需要同步的矿区
|
|
|
$mine_list_ext = DB::table('mine_list_ext')
|
|
@@ -238,6 +242,7 @@ class UpdateHkList extends Command
|
|
|
|
|
|
//天地摄像头同步开始时间
|
|
|
$syn['td_camera_start_time'] = date('Y-m-d H:i:s');
|
|
|
+ DB::table('syn')->update($syn)->where('id',$syn_id);
|
|
|
|
|
|
if(sizeof($mine_list_ext)>0){
|
|
|
for($i=0;$i<sizeof($mine_list_ext);$i++){//循环同步所有天地伟业矿区
|
|
@@ -311,7 +316,6 @@ class UpdateHkList extends Command
|
|
|
|
|
|
//天地摄像头同步结束时间
|
|
|
$syn['td_camera_end_time'] = date('Y-m-d H:i:s');
|
|
|
- $syn_id = DB::table('syn')->orderBy('id','desc')->pluck('id')->first();
|
|
|
DB::table('syn')->update($syn)->where('id',$syn_id);
|
|
|
}
|
|
|
|