ticket #154 中实现uuid的搜索

This commit is contained in:
wlx 2011-09-16 06:20:57 +00:00
parent 34ad3d40fc
commit 992ebf6455
1 changed files with 2 additions and 1 deletions

View File

@ -412,7 +412,8 @@ class Admin_DownController extends Zend_Controller_Action
->where('o.uuid = m.uuid and (o.status=0 or o.status=5)');
if(!empty($search) && !empty($keyword))
{
$select ->Where('m.title like ? ','%'.$keyword.'%');
$select ->Where('m.title like ?','%'.$keyword.'%');
$select->orWhere('m.uuid=?',$keyword);
$this->view->title='“'.$keyword.'”的搜索结果 :';
}
$select ->group('m.title')