aa
This commit is contained in:
parent
74ab85509b
commit
cbca7f575c
@ -152,6 +152,7 @@ class VehicleLogic extends BaseLogic
|
|||||||
$info = Vehicle::field('id,license,status,type')->findOrEmpty($params['id'])->toArray();
|
$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();
|
$rent = VehicleRent::field('use_user_id,use_user_name,use_user_phone')->where('car_id',$info['id'])->findOrEmpty()->toArray();
|
||||||
$data = array_merge($info,$rent);
|
$data = array_merge($info,$rent);
|
||||||
|
|
||||||
if(!empty($rent)){
|
if(!empty($rent)){
|
||||||
$data['total_package'] = Logistics::field('order_id')->where('courier_id',$data['use_user_id'])->where('status',1)->count();
|
$data['total_package'] = Logistics::field('order_id')->where('courier_id',$data['use_user_id'])->where('status',1)->count();
|
||||||
$goodsTotal = 0;
|
$goodsTotal = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user