diff --git a/api/controllers/wxapp/licheb/Statistics.php b/api/controllers/wxapp/licheb/Statistics.php index 8131e548..414c7a46 100644 --- a/api/controllers/wxapp/licheb/Statistics.php +++ b/api/controllers/wxapp/licheb/Statistics.php @@ -64,6 +64,7 @@ class Statistics extends Wxapp{ 'status>=' => 0, 'c_time>=' => strtotime($v2['s_time']), 'c_time<=' => strtotime($v2['e_time']), + 'brand_id!=' => 3, ]; $count_data[] = $this->customers_model->count($where); } @@ -143,6 +144,7 @@ class Statistics extends Wxapp{ 'status>=' => 0, 'c_time>=' => strtotime($v2['s_time']), 'c_time<=' => strtotime($v2['e_time']), + 'brand_id!=' => 3, ]; $count_data[] = $this->orders_model->count($where); } @@ -225,7 +227,8 @@ class Statistics extends Wxapp{ 'icon' => $val['icon'], ]; $where = [ - 'biz_id' => $biz_id + 'biz_id' => $biz_id, + 'brand_id!=' => 3 ]; $admin_id && $where['admin_id'] = $admin_id; if($day){ @@ -258,6 +261,7 @@ class Statistics extends Wxapp{ 'status>=' => 0, 'c_time>=' => strtotime($val['s_time']), 'c_time<=' => strtotime($val['e_time']), + 'brand_id!=' => 3, ]; $count_data[] = $this->customers_model->count($where); } @@ -364,7 +368,8 @@ class Statistics extends Wxapp{ ]; $where = [ 'status' => $val['status'], - 'biz_id' => $biz_id + 'biz_id' => $biz_id, + 'brand_id!=' => 3, ]; if($day){ $s_time = date('Y-m-d 00:00:00',strtotime($day)); @@ -392,6 +397,7 @@ class Statistics extends Wxapp{ 'status>=' => 0, 'c_time>=' => strtotime($val['s_time']), 'c_time<=' => strtotime($val['e_time']), + 'brand_id!=' => 3, ]; $count_data[] = $this->orders_model->count($where); } diff --git a/api/controllers/wxapp/licheb/User.php b/api/controllers/wxapp/licheb/User.php index 53c03621..6ab51187 100644 --- a/api/controllers/wxapp/licheb/User.php +++ b/api/controllers/wxapp/licheb/User.php @@ -253,7 +253,8 @@ class User extends Wxapp{ $brand_ids = implode(',',$auto_brands_arr); if($auto_brands_arr && $brand_ids){ $where = [ - "id in ($brand_ids)" => null + "id in ($brand_ids)" => null, + "id !=" => 3 //过滤狸车品牌 ]; $brands = $this->auto_brand_model->select($where,'',0,0,'name'); $auto_brands = array_column($brands,'name');