修改了一处逻辑问题
This commit is contained in:
parent
e44e61b751
commit
ea41e350f2
|
@ -183,7 +183,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$sql = "select m.id,md.title,m.status from mdstatus m
|
$sql = "select m.id,md.title,m.status from mdstatus m
|
||||||
left join metadata md on md.uuid=m.uuid
|
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);
|
$rs = $this->db->query($sql);
|
||||||
$rows = $rs->fetchAll();
|
$rows = $rs->fetchAll();
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
||||||
|
|
||||||
foreach ($exps as $v)
|
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
|
left join users u on m.id=u.id
|
||||||
where m.uuid='$uuid' and m.id='$v'";
|
where m.uuid='$uuid' and m.id='$v'";
|
||||||
$rs = $this->db->query($sql);
|
$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')";
|
$sql = "insert into mdexpertreview (id,uuid) values ('$v','$uuid')";
|
||||||
|
$update = "update mdstatus set status=2 where uuid='$uuid'";
|
||||||
|
|
||||||
try{
|
try{
|
||||||
if($this->db->exec($sql)>0)
|
if($this->db->exec($sql)>0 && $this->db->exec($update))
|
||||||
{
|
{
|
||||||
$subject = "西部数据中心";
|
$subject = "西部数据中心";
|
||||||
$email = "la5c@qq.com";
|
$email = "la5c@qq.com";
|
||||||
|
|
Loading…
Reference in New Issue