Browse Source

管理员导出订单

sunhao 5 years ago
parent
commit
bde8c0fb77
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Http/Controllers/Admin/OrderController.php

+ 3 - 3
app/Http/Controllers/Admin/OrderController.php

@@ -942,8 +942,8 @@ class OrderController extends Controller
942 942
         $team_id = $request->input('team_id');
943 943
         #只能看自己团队的
944 944
         if($self_role != '超级管理员' && $self_role != '售后管理员'){
945
-            $admin_id = session('admin_id');
946
-            $team_id = DB::table('admin')->where('id', $admin_id)->pluck('team_id');        
945
+            $self_id = session('admin_id');
946
+            $team_id = DB::table('admin')->where('id', $self_id)->pluck('team_id');        
947 947
         }
948 948
 
949 949
         //假如有团队筛选,检索销售队员
@@ -977,7 +977,7 @@ class OrderController extends Controller
977 977
             if(($id>0)) $query->where('id', $id);
978 978
         })->where('is_del',0)->orderBy('id', 'desc')->get();
979 979
         $result = json_decode(json_encode($result),true);
980
-        
980
+
981 981
         $status_arr = array(
982 982
             0 => '已录入',
983 983
             1 => '待审核',