fix mdstatus insert error

This commit is contained in:
wlx 2012-09-18 05:36:21 +00:00
parent dcad18d060
commit 6def62819b
1 changed files with 2 additions and 2 deletions

View File

@ -225,8 +225,8 @@ class SubmitController extends Zend_Controller_Action
$iso=new ISO19115(); $iso=new ISO19115();
$iso->saveDB($this->db,$row['xml']); $iso->saveDB($this->db,$row['xml']);
//进入评审库 //进入评审库
$sql="insert into mdstatus (uuid,status,userid) select uuid,0,? from mdversion where id=?"; $sql="insert into mdstatus (uuid,status,userid) values(?,?,?)";
$this->db->query($sql,array($u_id,$id)); $this->db->query($sql,array($uuid,0,$id));
//email to admin //email to admin
$mail=new WestdcMailer($this->view->config->smtp); $mail=new WestdcMailer($this->view->config->smtp);