Merge pull request '合同详情中租赁车俩签约时间显示错误修复' (#100) from zhangwei into dev

Reviewed-on: #100
This commit is contained in:
weiz 2023-10-18 09:43:45 +08:00
commit 108a8f36f2

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;