diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 62fd58f8..b0dfa5a9 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -3340,7 +3340,7 @@ class Admin_DataController extends Zend_Controller_Action // 保存数据作者信息 // 2. 保存变化记录 save changelog & userid for the latest version - $sql = "UPDATE mdversion SET changelog=?,userid=? WHERE id in (select v.id from mdversion v left join en.geonetworkmetadata g on v.uuid=g.uuid where g.id=? order by v.ts_created desc limit 1)"; + $sql = "UPDATE en.mdversion SET changelog=?,userid=? WHERE id in (select v.id from en.mdversion v left join en.geonetworkmetadata g on v.uuid=g.uuid where g.id=? order by v.ts_created desc limit 1)"; $this->db->query($sql,array($changelog,$u_id,$id)); // 3. 保存数据评审状态 @@ -3348,7 +3348,7 @@ class Admin_DataController extends Zend_Controller_Action $iso=new ISO19115(); @$iso->saveDB($this->db,$row['data']); //进入评审库 - $sql="insert into mdstatus (uuid,status,userid) select uuid,0,? from en.geonetworkmetadata where id=?"; + $sql="insert into en.mdstatus (uuid,status,userid) select uuid,0,? from en.geonetworkmetadata where id=?"; $this->db->query($sql,array($u_id,$id)); //email to admin $mail=new WestdcMailer($this->view->config->smtp); @@ -3374,7 +3374,7 @@ class Admin_DataController extends Zend_Controller_Action $this->jsonexit($data); return true; }catch(Exception $e) { - $sql="delete from mdstatus where uuid in (select uuid from en.geonetworkmetadata where id=?)"; + $sql="delete from en.mdstatus where uuid in (select uuid from en.geonetworkmetadata where id=?)"; $this->db->query($sql,array($id)); $msg = "提交失败,请确认权限后重试"; if($this->debug>0)