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

导出功能优化

@@ -94,7 +94,7 @@ class AdminCommon extends Backend @@ -94,7 +94,7 @@ class AdminCommon extends Backend
94 94
95 //导出套餐订单列表 95 //导出套餐订单列表
96 public static function exportOrderList($where){ 96 public static function exportOrderList($where){
97 - $expTableData = Common::selectWhereData('order',$where,'r_id,order_sn,price,content,total_num,use_num,not_use_num,advice,address,organization,pin_user,mark','order_sn asc'); 97 + $expTableData = Common::selectWhereData('order',$where,'createtime,r_id,order_sn,price,content,total_num,use_num,not_use_num,advice,address,organization,pin_user,mark','order_sn asc');
98 //查询手机号 98 //查询手机号
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');