修改用户离线申请的数量判断逻辑
This commit is contained in:
parent
00928d1e77
commit
ac0576777e
|
@ -1142,7 +1142,7 @@ class DataController extends Zend_Controller_Action
|
|||
// 10:离线申请完成?
|
||||
// -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));
|
||||
//保证添加的离线数据申请未申请
|
||||
$sql="select count(*) as datacount from dataorder where (ts_approved is null) and userid='$userid' and uuid=? and status in (1,2,3,4)";
|
||||
|
|
Loading…
Reference in New Issue