作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

导出功能优化

@@ -99,8 +99,8 @@ class AdminCommon extends Backend @@ -99,8 +99,8 @@ class AdminCommon extends Backend
99 $r_ids = array_unique(array_column($expTableData,'r_id')); 99 $r_ids = array_unique(array_column($expTableData,'r_id'));
100 $res_mobile = Common::selectWhereData('registers',['id'=>['in',$r_ids]],'id,mobile'); 100 $res_mobile = Common::selectWhereData('registers',['id'=>['in',$r_ids]],'id,mobile');
101 foreach($expTableData as $key => $r){ 101 foreach($expTableData as $key => $r){
102 - $user_id = Db::name('registers')->where(['id'=>$r['r_id']])->value('uid');  
103 - $expTableData[$key]['user_name'] = Db::name('user')->where(['id'=>$user_id])->value('nickname'); 102 + $user_name = Db::name('registers')->where(['id'=>$r['r_id']])->value('user_name');
  103 + $expTableData[$key]['user_name'] = $user_name;//Db::name('user')->where(['id'=>$user_id])->value('nickname');
104 } 104 }
105 $expCellName = [ 105 $expCellName = [
106 ['order_sn','订单编号',15], 106 ['order_sn','订单编号',15],