Parcourir la source

订单状态导出

yijia
v-Brocloni il y a 3 ans
Parent
révision
145e1e6e8f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      application/admin/controller/unishop/Order.php

+ 2
- 1
application/admin/controller/unishop/Order.php Voir le fichier

@@ -536,12 +536,13 @@ class Order extends Backend
FROM_UNIXTIME(o.createtime,\'%Y-%m-%d %H:%i:%S\'),
if(o.is_carry=1,\'已提货\',\'未提货\'),
refund_fee,
if(o.status=1,\'正常\',\'退款\'),
o.remark')
->group("unishop_order_product.id")
->order("o.createtime","desc")
->select();
$list = collection($list)->toArray();
$title = ['订单号','工号','姓名','楼层','邮箱','商品','购买数量','总金额','下单时间','是否提货','退款金额','备注'];
$title = ['订单号','工号','姓名','楼层','邮箱','商品','购买数量','总金额','下单时间','是否提货','退款金额','状态','备注'];
// Create new Spreadsheet object
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();


Chargement…
Annuler
Enregistrer