edit-api-licheb-filter-brand_id
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user