This commit is contained in:
weiz 2023-11-16 15:17:46 +08:00
parent f4daf29d0c
commit fa1923bb1e

View File

@ -24,10 +24,10 @@
}
$params = $this->request->post(['page_no','page_size','contract_no','contract_type','contract_status','company_name','area_manager']);
$where = [];
if(isset($params['contract_no'])){
if(isset($params['contract_no']) && $params['contract_no']!=''){
$where[] = ['contract_no','like','%'.$params['contract_no'].'%'];
}
if(isset($params['contract_type'])){
if(isset($params['contract_type']) && $params['contract_type']!=''){
$where[] = ['contract_type','=',$params['contract_type']];
}
if(isset($params['contract_status']) && in_array($params['contract_status'],[0,1])){