1
This commit is contained in:
@@ -216,11 +216,11 @@ class Score extends Wxapp
|
||||
$s_stime = strtotime($s_time);
|
||||
$s_etime = strtotime($e_time);
|
||||
$indicator = [
|
||||
['name' => '拓客能力', 'max' => 10],
|
||||
['name' => '跟进能力', 'max' => 10],
|
||||
['name' => '邀约能力', 'max' => 10],
|
||||
['name' => '成交能力', 'max' => 10],
|
||||
['name' => '交付能力', 'max' => 10]
|
||||
['name' => '拓客能力', 'max' => 100],
|
||||
['name' => '跟进能力', 'max' => 100],
|
||||
['name' => '邀约能力', 'max' => 100],
|
||||
['name' => '成交能力', 'max' => 100],
|
||||
['name' => '交付能力', 'max' => 100]
|
||||
];
|
||||
$series_value = [];
|
||||
foreach ($indicator as $key => $value) {
|
||||
@@ -238,6 +238,7 @@ class Score extends Wxapp
|
||||
$max && $indicator[$key]['max'] = $max;
|
||||
$where['biz_id'] = $this->biz_id;
|
||||
$value = $this->customers_model->count($where);
|
||||
!$value && $value = 1;
|
||||
break;
|
||||
case 1://跟进能力
|
||||
$where = [
|
||||
@@ -253,6 +254,7 @@ class Score extends Wxapp
|
||||
];
|
||||
$value = $this->customers_model->count($where);
|
||||
$max && $indicator[$key]['max'] = $max;
|
||||
!$value && $value = 1;
|
||||
break;
|
||||
case 2:
|
||||
$where = [
|
||||
@@ -267,6 +269,7 @@ class Score extends Wxapp
|
||||
$max && $indicator[$key]['max'] = $max;
|
||||
$where["biz_id"] = $this->biz_id;
|
||||
$value = $this->customers_model->count($where);
|
||||
!$value && $value = 1;
|
||||
break;
|
||||
case 3:
|
||||
$where = [
|
||||
@@ -280,6 +283,7 @@ class Score extends Wxapp
|
||||
$max && $indicator[$key]['max'] = $max;
|
||||
$where["biz_id"] = $this->biz_id;
|
||||
$value = $this->orders_model->count($where);
|
||||
!$value && $value = 1;
|
||||
break;
|
||||
case 4:
|
||||
$where = [
|
||||
|
||||
Reference in New Issue
Block a user