瀏覽代碼

导出是否提货

yijia
v-Brocloni 3 年之前
父節點
當前提交
a17c29c681
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      application/admin/controller/unishop/Order.php

+ 2
- 1
application/admin/controller/unishop/Order.php 查看文件

@@ -533,12 +533,13 @@ class Order extends Backend
unishop_order_product.number as number,
unishop_order_product.price,
FROM_UNIXTIME(o.createtime,\'%Y-%m-%d %H:%i:%S\'),
if(o.is_carry=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();


Loading…
取消
儲存