合同详情中租赁车俩签约时间显示错误修复

This commit is contained in:
unknown 2023-10-18 09:43:18 +08:00
parent 414f6435ca
commit f1a6d17923

View File

@ -273,7 +273,7 @@ class VehicleContractController extends BaseAdminController
$rent_info = VehicleRent::where('car_id',$v['id'])->findOrEmpty();
if(!$rent_info->isEmpty()){
$cars[$k]['type'] = $rent_info['type'];
$cars[$k]['rent_time'] = $rent_info['rent_time'];
$cars[$k]['rent_time'] = !empty($rent_info['rent_time']) ? $rent_info['rent_time'] : $rent_info['create_time'];
}
}
$data['cars_info'] = $cars;