From bfeadbd63386fefcaa0322d1552732f2f253da71 Mon Sep 17 00:00:00 2001 From: lin fan Date: Mon, 4 Nov 2024 21:03:46 +0800 Subject: [PATCH] 1 --- api/controllers/wxapp/licheb/Score.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/controllers/wxapp/licheb/Score.php b/api/controllers/wxapp/licheb/Score.php index aad60d19..adc03c59 100644 --- a/api/controllers/wxapp/licheb/Score.php +++ b/api/controllers/wxapp/licheb/Score.php @@ -237,8 +237,8 @@ class Score extends Wxapp $max = $this->customers_model->count($where_max); $max && $indicator[$key]['max'] = $max; $where['biz_id'] = $this->biz_id; - $value = $this->customers_model->count($where); - !$value && $value = 1; + $value = $this->customers_model->count($where) * 1.2; + !$value && $value = $max*0.1; break; case 1://跟进能力 $where = [ @@ -252,9 +252,9 @@ class Score extends Wxapp "id in (select DISTINCT customer_id from lc_receiver_customer_oplogs where c_time>={$s_stime} and c_time>={$s_etime})" => null, "biz_id" => $this->biz_id ]; - $value = $this->customers_model->count($where); + $value = $this->customers_model->count($where) * 1.2; $max && $indicator[$key]['max'] = $max; - !$value && $value = 1; + !$value && $value = $max*0.1; break; case 2: $where = [ @@ -268,8 +268,8 @@ class Score extends Wxapp $max = $this->customers_model->count($where_max); $max && $indicator[$key]['max'] = $max; $where["biz_id"] = $this->biz_id; - $value = $this->customers_model->count($where); - !$value && $value = 1; + $value = $this->customers_model->count($where) * 1.2; + !$value && $value = $max*0.1; break; case 3: $where = [ @@ -282,8 +282,8 @@ class Score extends Wxapp $max = $this->orders_model->count($where_max); $max && $indicator[$key]['max'] = $max; $where["biz_id"] = $this->biz_id; - $value = $this->orders_model->count($where); - !$value && $value = 1; + $value = $this->orders_model->count($where) * 1.2; + !$value && $value = $max*0.1; break; case 4: $where = [ @@ -296,8 +296,8 @@ class Score extends Wxapp $max = $this->orders_model->count($where_max); $max && $indicator[$key]['max'] = $max; $where['biz_id'] = $this->biz_id; - $value = $this->orders_model->count($where); - !$value && $value = 1; + $value = $this->orders_model->count($where) * 1.2; + !$value && $value = $max*0.1; default: break; }