update
This commit is contained in:
parent
c8af6af007
commit
60c95e000e
@ -778,6 +778,11 @@ class VehicleController extends BaseApiController
|
||||
'update_time' => time(),
|
||||
]);
|
||||
//生成关联记录
|
||||
if($xzRentCars['type'] == 0){
|
||||
$status = 2;
|
||||
}else{
|
||||
$status = 1;
|
||||
}
|
||||
VehicleBuyRecord::create([
|
||||
'company_id' => $xzCompany['id'],
|
||||
'company_name' => $xzCompany['company_name'],
|
||||
@ -787,7 +792,7 @@ class VehicleController extends BaseApiController
|
||||
'company_email' => $xzCompany['master_email'],
|
||||
'cars_info' => json_encode($cars),
|
||||
'num' => count($cars),
|
||||
'status' => 2,
|
||||
'status' => $status,
|
||||
'contract_id' => $res->id,
|
||||
'create_time' => time()
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user