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

导出功能优化

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