1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user