b
This commit is contained in:
parent
3415b45bee
commit
25edccb9a4
@ -80,7 +80,7 @@ class VehicleController extends BaseApiController
|
|||||||
$result = VehicleLogic::rendRecordEdit($param);
|
$result = VehicleLogic::rendRecordEdit($param);
|
||||||
//返回数据
|
//返回数据
|
||||||
if($result['code'] == 1){
|
if($result['code'] == 1){
|
||||||
return $this->success($result['msg'],$result['data']);
|
return $this->success($result['msg']);
|
||||||
}else{
|
}else{
|
||||||
return $this->fail($result['msg']);
|
return $this->fail($result['msg']);
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ class VehicleLogic extends BaseLogic
|
|||||||
}
|
}
|
||||||
VehicleRentRecord::startTrans();
|
VehicleRentRecord::startTrans();
|
||||||
try {
|
try {
|
||||||
if($record['rent_type'] == 2){
|
if($record['rent_type'] == 1){
|
||||||
//获取承租公司信息
|
//获取承租公司信息
|
||||||
$company = Company::field('id,user_id,company_name,master_name,master_phone')->where('id',$record['party_b'])->find();
|
$company = Company::field('id,user_id,company_name,master_name,master_phone')->where('id',$record['party_b'])->find();
|
||||||
//设置数据
|
//设置数据
|
||||||
|
Loading…
x
Reference in New Issue
Block a user