姓名搜索时同时搜索用户名
This commit is contained in:
parent
1c6b29f20e
commit
c5712b84dc
|
@ -60,7 +60,10 @@ class Admin_UserController extends Zend_Controller_Action
|
|||
$this->messenger->addMessage('搜索结果');
|
||||
$select->from('users');
|
||||
if(!empty($realname))
|
||||
$select->where('realname like ? ', '%'.$realname.'%');
|
||||
{
|
||||
$select->where('realname like ? ', '%'.$realname.'%');
|
||||
$select->orWhere('username like ? ', '%'.$realname.'%');
|
||||
}
|
||||
if(!empty($unit))
|
||||
$select->where('unit like ? ', '%'.$unit.'%');
|
||||
if(!empty($project))
|
||||
|
|
Loading…
Reference in New Issue