Browse Source

checkredis

yijia
娄梦宁 3 years ago
parent
commit
400ed665c9
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      application/admin/controller/unishop/Order.php

+ 4
- 2
application/admin/controller/unishop/Order.php View File

@@ -525,6 +525,7 @@ class Order extends Backend
'o.status'=>1
])
->field('
CONCAT("`",o.id),
user.username,
user.nickname,
user.floor,
@@ -534,10 +535,11 @@ class Order extends Backend
SUM(unishop_order_product.number) as number,
FROM_UNIXTIME(o.createtime,\'%Y-%m-%d %H:%i:%S\'),
o.remark')
->group("o.id")
->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…
Cancel
Save