From e31ccb7cc69a1128c54046e9f0e5e0e240faf8f8 Mon Sep 17 00:00:00 2001 From: wlx Date: Sun, 10 Nov 2013 10:30:29 +0000 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=AE=9E=E7=8E=B0=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E5=85=83=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DataController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 232297b1..7d77eb1b 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -196,12 +196,12 @@ class Admin_DataController extends Zend_Controller_Action $this->import($rs->data); $this->db->exec($this->db->quoteInto("update en.metadata set source=? where uuid='$uuid'",$rs->source)); $userid = Zend_Auth::getInstance()->getIdentity()->id; - $this->db->query("insert into mdstatus (uuid,status,ts_accepted,userid) select uuid,1,now(),? - from en.geonetworkmetadata gn where uuid not in (select uuid from mdstatus) and uuid=?",array($userid,$uuid)); + $this->db->query("insert into en.mdstatus (uuid,status,ts_accepted,userid) select uuid,1,now(),? + from en.geonetworkmetadata gn where uuid not in (select uuid from en.mdstatus) and uuid=?",array($userid,$uuid)); $this->view->msg='成功同步元数据:'.$uuid; //update search document $search=new Search(); - $sql="select * from xunsearch where uuid=?"; + $sql="select * from en.xunsearch where uuid=?"; $sth = $this->db->prepare($sql); $sth->setFetchMode(Zend_Db::FETCH_ASSOC); $sth->execute(array($uuid));