update
This commit is contained in:
parent
250ca31496
commit
ef00bf8a0c
@ -78,12 +78,14 @@ class VehicleContractController extends BaseAdminController
|
||||
if(isset($param['contract_no'])){
|
||||
$where[] = ['contract_no','like','%'.$param['contract_no'].'%'];
|
||||
}
|
||||
if(isset($param['status'])){
|
||||
$where[] = ['status','=', $param['contract_no']];
|
||||
if(isset($param['status']) && in_array($param['status'],[0,1])){
|
||||
$where[] = ['status','=', $param['status']];
|
||||
}else{
|
||||
$where[] = ['status','in', '0,1'];
|
||||
}
|
||||
$pageNo = !empty($param['page_no']) ? $param['page_no'] : 1;
|
||||
$pageSize = !empty($param['page_size']) ? $param['page_size'] : 15;
|
||||
$data = VehicleContract::where($where)->where('status','in','0,1')
|
||||
$data = VehicleContract::where($where)
|
||||
->page($pageNo, $pageSize)
|
||||
->order('create_time desc')
|
||||
->select()->each(function($item){
|
||||
|
Loading…
x
Reference in New Issue
Block a user