This commit is contained in:
unknown 2023-09-04 10:37:43 +08:00
parent 74ab85509b
commit cbca7f575c

View File

@ -152,6 +152,7 @@ class VehicleLogic extends BaseLogic
$info = Vehicle::field('id,license,status,type')->findOrEmpty($params['id'])->toArray();
$rent = VehicleRent::field('use_user_id,use_user_name,use_user_phone')->where('car_id',$info['id'])->findOrEmpty()->toArray();
$data = array_merge($info,$rent);
if(!empty($rent)){
$data['total_package'] = Logistics::field('order_id')->where('courier_id',$data['use_user_id'])->where('status',1)->count();
$goodsTotal = 0;