实现元数据删除及版本更新时对应的搜索更新
This commit is contained in:
parent
69ef57cdec
commit
9e6ae1749c
|
@ -293,6 +293,8 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
try {
|
try {
|
||||||
$this->db->query($sql,array($delete));
|
$this->db->query($sql,array($delete));
|
||||||
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
|
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
|
||||||
|
$search=new Search();
|
||||||
|
$search->del($delete,'id');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->messenger->addMessage($e->getMessage());
|
$this->messenger->addMessage($e->getMessage());
|
||||||
}
|
}
|
||||||
|
@ -2424,6 +2426,11 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$this->jsonexit($data);
|
$this->jsonexit($data);
|
||||||
return true;
|
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) {
|
}catch(Exception $e) {
|
||||||
$msg = "提交失败,请确认权限后重试";
|
$msg = "提交失败,请确认权限后重试";
|
||||||
if($this->debug>0)
|
if($this->debug>0)
|
||||||
|
|
Loading…
Reference in New Issue