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())