对同步的新数据增加评审状态
This commit is contained in:
parent
0783878a26
commit
1492b6dccf
|
@ -52,6 +52,11 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$this->db->query($sql);
|
$this->db->query($sql);
|
||||||
$sql="delete from responsible where id not in (select distinct(resid) from role)";
|
$sql="delete from responsible where id not in (select distinct(resid) from role)";
|
||||||
$this->db->query($sql);
|
$this->db->query($sql);
|
||||||
|
//对所有的新数据增加评审状态
|
||||||
|
$sql="insert into mdstatus (uuid,status,ts_accepted,userid) select uuid,1,now(),?
|
||||||
|
from watergn where uuid not in (select uuid from mdstatus)";
|
||||||
|
$userid = Zend_Auth::getInstance()->getIdentity()->id;
|
||||||
|
$this->db->query($sql,array($userid));
|
||||||
//同步黑河遥感实验的元数据
|
//同步黑河遥感实验的元数据
|
||||||
$sql="select uuid,data,source from watergn where schemaid='iso19115'";
|
$sql="select uuid,data,source from watergn where schemaid='iso19115'";
|
||||||
$rs=$this->db->fetchAll($sql);
|
$rs=$this->db->fetchAll($sql);
|
||||||
|
|
Loading…
Reference in New Issue