Commit df4714b8 authored by zhz's avatar zhz

bunding

parent fcb5e248
...@@ -46,9 +46,9 @@ class PBundlingModel extends \DAO\AbstractModel { ...@@ -46,9 +46,9 @@ class PBundlingModel extends \DAO\AbstractModel {
if(is_array($where)){ if(is_array($where)){
$where = $this->db->getSqlWhereByArray($where); $where = $this->db->getSqlWhereByArray($where);
} }
$this->db->select($field)->from($this->_tableName)->where($where)->where("bl_quota_starttime <= ".time())->where('bl_quota_endtime >= '.time())->where('bl_state=1'); $this->db->select($field)->from($this->_tableName)->where($where);
if($isDel==\Our\ApiConst::zero){ if($isDel==\Our\ApiConst::zero){
$this->db->where('is_del=0'); $this->db->where('is_del=0')->where("bl_quota_starttime <= ".time())->where('bl_quota_endtime >= '.time())->where('bl_state=1');
} }
if($limit){ if($limit){
$this->db->limit($limit[0],$limit[1]); $this->db->limit($limit[0],$limit[1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment