From 0743137fea3f5b28e69be639c983dda1c9add0f5 Mon Sep 17 00:00:00 2001 From: wlx Date: Sat, 10 May 2014 05:27:51 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=85=83=E6=95=B0=E6=8D=AE=E5=88=B0=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=97=AE=E9=A2=98?= 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 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)