#552 修改状态读取字段

This commit is contained in:
Li Jianxuan 2013-10-08 08:45:58 +00:00
parent 5d2010ba1d
commit 99088092ac
2 changed files with 3 additions and 3 deletions

View File

@ -570,7 +570,7 @@ class Admin_DownController extends Zend_Controller_Action
$sql="update dataorder set status=5,ts_approved=now() where offlineappid=?";
$this->db->query($sql,array($finish));
$sql="update offlineapp set ts_approved=now() where id=? and ts_approved is null";
$sql="update offlineapp set ts_approved=now(),status=5 where id=? and ts_approved is null";
$this->db->query($sql,array($finish));
$sql="select * from offlineapp where id=?";
$row=$this->db->fetchRow($sql,array($finish));

View File

@ -24,9 +24,9 @@ class Dataorder
if ($statu==4)
$wheresql[] = " (o.ts_approved is null and o.pdflink is not null and d.status=4) ";
elseif ($statu==-1)
$wheresql[] = " (o.pdflink is not null and o.status=-1)";
$wheresql[] = " (o.pdflink is not null and d.status=-1)";
elseif ($statu == 3)
$wheresql[] = " (o.pdflink is not null and o.status=3 ) ";
$wheresql[] = " (o.pdflink is not null and d.status=3 ) ";
elseif ($statu == 5)
$wheresql[] = " (o.status=5) ";
else