Merge pull request 'update' (#167) from zhangwei into dev

Reviewed-on: #167
This commit is contained in:
weiz 2023-11-16 15:19:31 +08:00
commit 0d8e60d862

View File

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