diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index c5b34d55..363f844e 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -1256,6 +1256,7 @@ class Customers extends Wxapp $where['b.status'] = $tab_id; } else { $where['b.status<>'] = 2; + $where['b.t_day'] = $t_day; } } $group_id == 1 && $where['a.admin_id'] = $this->myuid; diff --git a/api/controllers/wxapp/licheb/User.php b/api/controllers/wxapp/licheb/User.php index 48556c86..1f42e166 100644 --- a/api/controllers/wxapp/licheb/User.php +++ b/api/controllers/wxapp/licheb/User.php @@ -330,7 +330,7 @@ class User extends Wxapp $where['un_lock'] = 1; } $unuse_count = $this->customers_model->count($where); - $where = ['biz_id' => $biz_id, 'cs_biz_id<>' => -1, 'if_defeat' => 1, 'status>' => -1]; + $where = ['biz_id' => $biz_id, 'if_defeat' => 1, 'status>' => -1]; $biz_type == Biz_model::BIZ_TYPE_4s && $where['un_lock'] = 1; $defeat_count = $this->customers_model->count($where); $clues_count = $this->clues_model->count(['biz_id' => $biz_id, 'status' => 1, 'status2' => 1]); @@ -368,8 +368,8 @@ class User extends Wxapp ['title' => '发票开具', 'icon' => 'icon-kaipiao1', 'total' => $kp_total, 'page' => '/pages/order/filterList/index2?type=1&title=发票开具'], ['title' => '车辆交付', 'icon' => 'icon-jiaofu', 'total' => $ck_total, 'page' => '/pages/order/filterList/index2?type=2&title=车辆交付'], ]; - $where_v = ['a.biz_id' => $biz_id, 'a.cs_biz_id<>' => -1, 'a.status in(0,1)' => null, 'b.t_day' => date('Y-m-d')]; - $where_c = ['biz_id' => $biz_id, 'cs_biz_id<>' => -1, 'status in(0,1)' => null]; + $where_v = ['a.biz_id' => $biz_id, 'a.status in(0,1)' => null, 'b.t_day' => date('Y-m-d')]; + $where_c = ['biz_id' => $biz_id, 'status in(0,1)' => null]; $group_id == 4 && $where_c['brand_id!='] = 3; $biz_type == Biz_model::BIZ_TYPE_4s && $where_c['un_lock'] = 1; if ($group_id == 1) {