|
|
@@ -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) { |
|
|
|
// 单元格内容写入 |
|
|
|