This commit is contained in:
lin fan
2024-11-04 21:03:46 +08:00
parent b88f5eaf10
commit bfeadbd633
+10 -10
View File
@@ -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;
}