diff --git a/app/common/service/xlsx/OrderList.php b/app/common/service/xlsx/OrderList.php index caef8a8e..61fa1abb 100644 --- a/app/common/service/xlsx/OrderList.php +++ b/app/common/service/xlsx/OrderList.php @@ -126,7 +126,7 @@ class OrderList $sheet->setCellValue('G' . ($count + 7),'押金'); $sheet->setCellValue('H' . ($count + 7),$order['deposit'].'元'); $sheet->setCellValue('I' . ($count + 7),'合计预收'); - $sheet->setCellValue('J' . ($count + 7),bcadd($order['deposit'],$order['total_price']).'元'); + $sheet->setCellValue('J' . ($count + 7),bcadd($order['deposit']??0,$order['total_price']).'元'); $sheet->setCellValue('L' . ($count + 7),'接单员'); $sheet->setCellValue('M' . ($count + 7),$order['admin_name']); $sheet->setCellValue('O' . ($count + 7),'分单员');