修改小组公司租赁签约回调
This commit is contained in:
parent
92fe71fad5
commit
7a8533595a
@ -281,8 +281,9 @@ class IndexController extends BaseApiController
|
|||||||
$vehicle = json_decode($contract['cars_info'], true);
|
$vehicle = json_decode($contract['cars_info'], true);
|
||||||
VehicleRent::where('car_id', $vehicle['id'])->update([
|
VehicleRent::where('car_id', $vehicle['id'])->update([
|
||||||
'status' => 2,
|
'status' => 2,
|
||||||
'rent_time' => time(),
|
'rent_contract_id' => $contract['id'],
|
||||||
'rent_company_id' => $contract['company_b_id'],
|
'rent_company_id' => $contract['company_b_id'],
|
||||||
|
'rent_time' => time(),
|
||||||
]);
|
]);
|
||||||
$party_b = Company::where('id', $contract['company_b_id'])->find();
|
$party_b = Company::where('id', $contract['company_b_id'])->find();
|
||||||
//通知物流系统跟新
|
//通知物流系统跟新
|
||||||
@ -292,13 +293,6 @@ class IndexController extends BaseApiController
|
|||||||
'use_user_name' => $party_b['master_name'],
|
'use_user_name' => $party_b['master_name'],
|
||||||
'use_user_phone' => $party_b['master_phone']
|
'use_user_phone' => $party_b['master_phone']
|
||||||
]);
|
]);
|
||||||
CompanyProperty::create([
|
|
||||||
'company_id' => $contract['company_b_id'],
|
|
||||||
'object_id' => $vehicle['id'],
|
|
||||||
'type' => 1,
|
|
||||||
'create_time' => time(),
|
|
||||||
'update_time' => time(),
|
|
||||||
]);
|
|
||||||
return json(['success' => true, 'msg' => '成功']);
|
return json(['success' => true, 'msg' => '成功']);
|
||||||
} else {
|
} else {
|
||||||
return json(['success' => true, 'msg' => '成功']);
|
return json(['success' => true, 'msg' => '成功']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user