feat : order list

This commit is contained in:
2025-04-07 17:45:42 +08:00
parent 624e46e152
commit 5e18a83065
7 changed files with 445 additions and 0 deletions

View File

@@ -166,6 +166,8 @@ class OrderInfoService extends BaseService
'quantity' => $item['quantity'],
'price' => bcmul((string)$item['unit_price'], (string)$item['quantity'], 2),
'chef_name' => $chefList[$item['sku_id']]['chinese_name'] ?? '',
'order_good_id' => $item['id'],
'is_comment' => $item['is_comment'],
];
$oneCopiesInfo['total_price'] = bcadd((string)$oneCopiesInfo['total_price'], bcmul((string)$item['unit_price'],(string)$item['quantity'],2), 2);
$oneCopiesInfo['total_quantity'] += $item['quantity'];