实现元数据删除及版本更新时对应的搜索更新

This commit is contained in:
wlx 2013-01-23 00:19:52 +00:00
parent 69ef57cdec
commit 9e6ae1749c
1 changed files with 8 additions and 1 deletions

View File

@ -293,6 +293,8 @@ class Admin_DataController extends Zend_Controller_Action
try {
$this->db->query($sql,array($delete));
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
$search=new Search();
$search->del($delete,'id');
} catch (Exception $e) {
$this->messenger->addMessage($e->getMessage());
}
@ -2424,6 +2426,11 @@ class Admin_DataController extends Zend_Controller_Action
$this->jsonexit($data);
return true;
}
$sql="select * from xunsearch whre uuid=?";
$sth = $this->db->prepare($sql);
$sth->execute(array($row['uuid']));
$row = $sth->fetch();
$search->update($row);
}catch(Exception $e) {
$msg = "提交失败,请确认权限后重试";
if($this->debug>0)