订单金额

This commit is contained in:
jianghanbo 2024-10-22 19:17:09 +08:00
parent 5172fad70e
commit 56302cc6f7
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@ class OrderController extends base
->order('id','desc');
$orders = $query->paginate($request->get('limit',10));
$orders->each(function($order) {
$order->total_price = bcdiv($order->total_price, 100, 2);
$order->actual_price = bcdiv($order->actual_price, 100, 2);
});
$list = $orders->hidden(['check_sn'])->append(['h5_os_status_name', 'h5_os_name' , 'can_book']);
return $this->success($list);