From 396c5c5d061f3fe8b03cfbcb49ae1b70ef6fb085 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 20 Oct 2011 06:57:30 +0000 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=8D=95=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=97=B6=E4=B9=9F=E6=9B=B4=E6=96=B0source=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DataController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index f0392b52..b4b61914 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -93,9 +93,10 @@ class Admin_DataController extends Zend_Controller_Action } else $this->view->msg='不存在此元数据:'.$uuid; } elseif (!empty($uuid) && isset($_POST['watersubmit'])) { //同步单条元数据 - $sql=$this->db->quoteInto("select data from watergn where uuid=?",$uuid); + $sql=$this->db->quoteInto("select data,source from heihegn where uuid=?",$uuid); if ($rs=$this->db->fetchRow($sql)) { - $this->import($rs->data); + $this->import($rs->data); + $this->db->query("update metadata set source=? where uuid=?",array($rs->source,$uuid)); $this->view->msg='成功同步元数据:'.$uuid; } else $this->view->msg='不存在此元数据:'.$uuid; } elseif (!empty($uuid)) {