From be9dc8976c92cec6c32d9f611059b98d8ee86501 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 13 Mar 2013 14:06:57 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsearch=E7=B1=BB=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/ReviewController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index 2b380398..7aed7cb4 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -152,11 +152,11 @@ class Admin_ReviewController extends Zend_Controller_Action //update search document $search=new Search(); //create search view in xunsearch - $sql="select * from xunsearch where uuid in (select uuid from metadata where id=?)"; + $sql="select uuid from mdstatus where id=?"; $sth = $this->db->prepare($sql); $sth->execute(array($cancel)); $data = $sth->fetch(); - $search->update($data); + $search->del($data['uuid'],'uuid'); $this->messenger->addMessage('操作成功:已取消该数据的评审'); $this->_redirect("/admin/review/accept"); } @@ -755,7 +755,7 @@ class Admin_ReviewController extends Zend_Controller_Action //update search document $search=new Search(); //create search view in xunsearch - $sql="select * from xunsearch where uuid in (select uuid from metadata where id in (?))"; + $sql="select * from xunsearch where uuid in (select uuid from mdstatus where id in (?))"; $sth = $this->db->prepare($sql); $sth->execute(array($ids)); while ($data = $sth->fetch())