This commit is contained in:
unknown 2023-09-05 18:49:32 +08:00
parent 322357385c
commit d2082f8e4a

View File

@ -54,7 +54,7 @@ class VehicleLists extends BaseAdminDataLists implements ListsSearchInterface
$item['type_name'] = $item->type_name;
$item['mileage'] = 0;
if($item['status'] == 2){
$item['rent_info'] = VehicleRent::where('car_id',$item['id'])->find();
$item['rent_info'] = VehicleRent::where('car_id',$item['id'])->findOrEmpty();
$goodsTotal = 0;
Logistics::field('order_id')->where('courier_id',$item['rent_info']['use_user_id'])->where('status',1)->select()->each(function($case)use(&$goodsTotal){
$count = 0;