From d55e2f9cec8d571fc333457d2e5b9615eaa05b73 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Fri, 14 Oct 2011 09:33:44 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=97=B6=E7=9A=84=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DataController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index f9962624..f0392b52 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -44,9 +44,9 @@ class Admin_DataController extends Zend_Controller_Action $this->view->msg='成功同步元数据!'; } elseif ($source=="watergn" && empty($uuid) ) { //首先删除所有的黑河试验数据 - //$sql="delete from metadata where source='e3ad32dc-f573-11e0-aa7b-b768cfd88d80'"; + //$sql="delete from metadata where source='e3ad32dc-f573-11e0-aa7b-b768cfd88d80'"; $sql="delete from metadata where uuid in (select uuid from heihegn)"; - $this->db->query($sql); + $this->db->query($sql); $sql="delete from responsible where id not in (select distinct(resid) from role)"; $this->db->query($sql); //同步黑河遥感实验的元数据 @@ -388,7 +388,7 @@ class Admin_DataController extends Zend_Controller_Action $select=$this->db->select(); $select->from('metadata') ->joinLeft('mdstat','metadata.uuid=mdstat.uuid','viewed') - ->joinLeft('geonetworkmetadata','geonetworkmetadata.uuid=metadata.uuid','id as gid') + ->joinLeft('geonetworkmetadata','geonetworkmetadata.uuid=metadata.uuid','id as gid') ->joinLeft('mdstatus','metadata.uuid=mdstatus.uuid','status as mdstatus') ->order('metadata.id desc'); $paginator = Zend_Paginator::factory($select); @@ -851,14 +851,14 @@ class Admin_DataController extends Zend_Controller_Action else { $this->messenger->addMessage('读取用户信息出错'); - $this->_redirect("/admin/data/attachments/add/1"); @unlink($filename); + $this->_redirect("/admin/data/attachments/add/1"); } }else { $this->messenger->addMessage('附件上传失败:'.$msg['error']); - $this->_redirect("/admin/data/attachments/add/1"); @unlink($filename); + $this->_redirect("/admin/data/attachments/add/1"); } } }//附件添加