update
This commit is contained in:
parent
efecd923d0
commit
a8f8178bb6
@ -80,6 +80,8 @@ class ContractController extends BaseApiController
|
||||
$cars = json_decode($contract['cars_info'], true);
|
||||
$data = [];
|
||||
foreach($cars as $v){
|
||||
$hasCar = VehicleRent::where('car_id',$v['id'])->find();
|
||||
if($hasCar->isEmpty()){
|
||||
$data[] = [
|
||||
'car_id' => $v['id'],
|
||||
'contract_id' => $contract['id'],
|
||||
@ -94,6 +96,7 @@ class ContractController extends BaseApiController
|
||||
'use_user_phone' => ''
|
||||
];
|
||||
}
|
||||
}
|
||||
Db::startTrans();
|
||||
try{
|
||||
//更新合同状态
|
||||
|
Loading…
x
Reference in New Issue
Block a user