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