修改用户离线申请的数量判断逻辑

This commit is contained in:
Li Jianxuan 2012-01-12 07:53:58 +00:00
parent 00928d1e77
commit ac0576777e
1 changed files with 2 additions and 2 deletions

View File

@ -1142,7 +1142,7 @@ class DataController extends Zend_Controller_Action
// 10:离线申请完成? // 10:离线申请完成?
// -1: 取消了在线下载进程 // -1: 取消了在线下载进程
//首先判断离线申请的数据数量是否超过系统限制 //首先判断离线申请的数据数量是否超过系统限制
$sql="select count(*) as datacount from dataorder where (ts_approved is null) and userid=? and status>0 and status<5"; $sql="select count(*) as datacount from dataorder where (ts_approved is null) and userid=? and status>0 and status<3";
$r=$this->db->fetchRow($this->db->quoteInto($sql,$userid)); $r=$this->db->fetchRow($this->db->quoteInto($sql,$userid));
//保证添加的离线数据申请未申请 //保证添加的离线数据申请未申请
$sql="select count(*) as datacount from dataorder where (ts_approved is null) and userid='$userid' and uuid=? and status in (1,2,3,4)"; $sql="select count(*) as datacount from dataorder where (ts_approved is null) and userid='$userid' and uuid=? and status in (1,2,3,4)";