Browse Source

11

undefined
loumengning 4 years ago
parent
commit
82a1f803b0
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      application/admin/controller/unishop/Order.php

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

@@ -561,11 +561,11 @@ class Order extends Backend
'unishop_order.status'=>1
])
->field('
p.product_id,
p.title,
SUM(p.number) num,
p.price,
SUM(p.number)*p.price as total')
SUM(p.number)*p.price as total,
p.product_id')
->group("p.id")
->select();
$product_list = collection($product_list)->toArray();
@@ -585,6 +585,7 @@ class Order extends Backend
}
$row=2;
foreach ($product_arr as $item) {
unset($item['product_id']);
$column = 1;
foreach ($item as $value) {
// 单元格内容写入


Loading…
Cancel
Save