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