Commit 13dcd492 authored by zhuwei's avatar zhuwei

客户列表中的筛选详情中的下一条查看详情 bug

parent d2bed045
...@@ -269,8 +269,10 @@ class User extends Basic ...@@ -269,8 +269,10 @@ class User extends Basic
$where['a.create_time'] = [ 'between time', [ $params['start_date'] . ' 00:00:00', $params['end_date'] . ' 23:59:59' ] ]; $where['a.create_time'] = [ 'between time', [ $params['start_date'] . ' 00:00:00', $params['end_date'] . ' 23:59:59' ] ];
} else { } else {
if (empty($params['id']) && empty($params['phone'])) { if (empty($params['id']) && empty($params['phone'])) {
$time_ = date('Y-m-d H:i:s', strtotime("-1 day")); //排除排除保护期内的客户
$where['a.create_time'] = array( 'lt', $time_ ); $time_now = date('Y-m-d H:i:s');//当前时间
//protect_time 将截止日期大于当前时间的数据排除掉
$where['a.protect_time'] = array( 'lt', $time_now );
} }
} }
...@@ -439,12 +441,12 @@ class User extends Basic ...@@ -439,12 +441,12 @@ class User extends Basic
$where['a.province'] = $params['province']; $where['a.province'] = $params['province'];
} }
if (!empty($params['city'])) { /*if (!empty($params['city'])) {
$where['a.city'] = $params['city']; $where['a.city'] = $params['city'];
} else { } else {
// 判断是 杭州还是上海 // 判断是 杭州还是上海
$where['a.city'] = trim($this->city) ? trim($this->city) : '上海市'; $where['a.city'] = trim($this->city) ? trim($this->city) : '上海市';
} }*/
if (!empty($params['disc'])) { if (!empty($params['disc'])) {
$where['a.disc'] = $params['disc']; $where['a.disc'] = $params['disc'];
......
...@@ -902,13 +902,7 @@ class Users extends Model ...@@ -902,13 +902,7 @@ class Users extends Model
->select(); ->select();
} }
/*$return = Db::name($this->table) //echo $this->getLastSql();
->field($field)
->where($where)
->limit($limit)
->order($order)
->select();*/
//dump($this->getLastSql());
return $result; return $result;
} }
......
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