fiexd
This commit is contained in:
parent
6fb8556c59
commit
e5c2e25ece
@ -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]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user