This commit is contained in:
unknown 2023-10-13 15:44:05 +08:00
parent 6fb8556c59
commit e5c2e25ece

View File

@ -443,7 +443,7 @@ class IndexController extends BaseApiController
//小组公司与镇街公司解约 //小组公司与镇街公司解约
if($vehicleBuyRecord['status'] == 1){ if($vehicleBuyRecord['status'] == 1){
//获取租赁车辆信息 //获取租赁车辆信息
$rentCarsInfo = VehicleRent::field('id,type,contract_id')->where('car_id',$cars_ids[0])->findOrEmpty(); $rentCarsInfo = VehicleRent::where('car_id',$cars_ids[0])->findOrEmpty();
if($rentCarsInfo['type'] == 0){ if($rentCarsInfo['type'] == 0){
//修改租赁车俩状态 //修改租赁车俩状态
VehicleRent::where('id',$rentCarsInfo['id'])->update(['status'=>0,'rent_company_id'=>0,'rent_contract_id'=>0,'rent_time'=>0]); VehicleRent::where('id',$rentCarsInfo['id'])->update(['status'=>0,'rent_company_id'=>0,'rent_contract_id'=>0,'rent_time'=>0]);