diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 0e5ae082..5238d7ea 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -86,13 +86,13 @@ class Admin_DataController extends Zend_Controller_Action if ($view) { //查看此次申请的具体内容,包括指向的地址 } elseif ($start) { - $sql="update dataorder d set d.status=4 where d.status=3 and d.userid=?"; + $sql="update dataorder set status=4 where status=3 and userid=?"; $this->db->query($sql,array($start)); //提示信息 $this->messenger->addMessage('提示信息:该离线数据已经开始处理,请在处理完成后点击“完成”。'); $this->_redirect('/admin/data/offline'); } elseif ($finish) { - $sql="begin;update dataorder d set d.status=5,d.ts_approved=now() where d.status=4 and d.userid=?;"; + $sql="begin;update dataorder set status=5,ts_approved=now() where status=4 and userid=?;"; $sql.="update offlineapp set ts_approved=now() where userid=? and ts_approved is null;commit;"; try { $this->db->query($sql,array($finish,$finish)); @@ -106,7 +106,7 @@ class Admin_DataController extends Zend_Controller_Action } elseif ($cancel) { //取消=删除? //需谨慎操作 - $sql="begin;update dataorder d set d.status=-1 where (d.status=3 or d.status=4) and d.userid=?;"; + $sql="begin;update dataorder set status=-1 where (status=3 or status=4) and userid=?;"; $sql.="delete from offlineapp where id=?;commit;"; //todo: 此处有问题,暂时跳过 }