This commit is contained in:
mkm 2023-09-01 16:13:54 +08:00
commit 8f6be73d33

View File

@ -79,7 +79,11 @@ class VehicleContractController extends BaseAdminController
$where[] = ['contract_no','like','%'.$param['contract_no'].'%']; $where[] = ['contract_no','like','%'.$param['contract_no'].'%'];
} }
if(isset($param['status']) && in_array($param['status'],[0,1])){ if(isset($param['status']) && in_array($param['status'],[0,1])){
$where[] = ['status','=', $param['status']]; if($param['status'] == 1){
$where[] = ['status','in', '1,2,3'];
}else{
$where[] = ['status','=', $param['status']];
}
}else{ }else{
$where[] = ['status','in', '0,1,2,3']; $where[] = ['status','in', '0,1,2,3'];
} }