Merge pull request 'test' (#4) from zhangwei into master
Reviewed-on: #4
This commit is contained in:
commit
1487f5d65d
@ -30,9 +30,9 @@ class VehicleController extends BaseApiController
|
||||
$selfCar = VehicleRent::field('id')->where('company_id',$this->userInfo['company_id'])->where('status','<>',3)->where('type',1)->count();
|
||||
//可在租车辆
|
||||
$doubleRentCar = $villageCompany - $rentCar - $applyCar - $selfCar;
|
||||
if($params['num'] > $doubleRentCar ){
|
||||
return $this->fail('数量超过可再租车辆数');
|
||||
}
|
||||
// if($params['num'] > $doubleRentCar ){
|
||||
// return $this->fail('数量超过可再租车辆数');
|
||||
// }
|
||||
//查找乙方公司信息
|
||||
$party_b = Company::field('id,company_name,organization_code,master_name,master_phone,master_email,company_type')->where('id',$this->userInfo['company_id'])->find();
|
||||
if(empty($party_b)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user