customer_visit_1025_6

This commit is contained in:
dengbw
2021-10-25 11:33:40 +08:00
committed by lccsw
parent a8986e6004
commit 7b6e80a547
+3 -1
View File
@@ -534,12 +534,14 @@ class Customers extends Wxapp
private function visit_lists($params = array())
{
$biz_id = $this->session['new_biz_id'] ? $this->session['new_biz_id'] : intval($this->session['biz_id']);
$group_id = $this->session['group_id'];
$this->load->model('receiver/receiver_customers_visit_model', 'mdCustomersVisit');
$page = $params['page'];
$size = $params['size'];
!$page && $page = 1;
!$size && $size = 10;
$where = array('a.biz_id' => $biz_id, 'a.admin_id' => $this->session['uid'], 'b.contact=' => 1, 'b.status=' => 1);
$where = array('a.biz_id' => $biz_id, 'b.contact=' => 1, 'b.status=' => 1);
$group_id == 1 && $where['a.admin_id'] = $this->session['uid'];
$count = $this->mdCustomersVisit->count_visit($where);
$lists = [];
if ($count) {