edit-api-licheb-filter-brand_id

This commit is contained in:
lccsw
2021-09-18 14:48:36 +08:00
parent 45969d90ed
commit ae0f217a10
2 changed files with 10 additions and 3 deletions
+8 -2
View File
@@ -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);
}
+2 -1
View File
@@ -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');