From ea41e350f2f2cc17b3be5d2a35572f90944ef733 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Tue, 11 Oct 2011 01:33:06 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E5=A4=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/ReviewController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index 6cb3c4cc..b437d849 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -183,7 +183,7 @@ class Admin_ReviewController extends Zend_Controller_Action { $sql = "select m.id,md.title,m.status from mdstatus m left join metadata md on md.uuid=m.uuid - where m.status in (3,4)"; + where m.status in (2,3,4)"; $rs = $this->db->query($sql); $rows = $rs->fetchAll(); @@ -235,7 +235,7 @@ class Admin_ReviewController extends Zend_Controller_Action foreach ($exps as $v) { - $sql = "select m.id,u.realname,u.email from mdexpertreview m + $sql = "select m.id,u.realname,m.uuid,u.email from mdexpertreview m left join users u on m.id=u.id where m.uuid='$uuid' and m.id='$v'"; $rs = $this->db->query($sql); @@ -248,9 +248,10 @@ class Admin_ReviewController extends Zend_Controller_Action { $sql = "insert into mdexpertreview (id,uuid) values ('$v','$uuid')"; + $update = "update mdstatus set status=2 where uuid='$uuid'"; try{ - if($this->db->exec($sql)>0) + if($this->db->exec($sql)>0 && $this->db->exec($update)) { $subject = "西部数据中心"; $email = "la5c@qq.com";