This commit is contained in:
lin fan
2024-11-21 17:10:31 +08:00
parent 4d6b91e196
commit 15db41dc90
+5 -5
View File
@@ -247,7 +247,7 @@ class Score extends Wxapp
$where['biz_id'] = $this->biz_id;
$value = $this->customers_model->count($where);
$series_value[] = $value ? $value : 1;
$max_total[] = $max ? ceil($max/$biz_count*5) : 10 ;
$max_total[] = $max ? ceil($max/$biz_count)*5 : 10 ;
//跟进能力
$where_max = $where = [
@@ -259,7 +259,7 @@ class Score extends Wxapp
$where['biz_id'] = $this->biz_id;
$value = $this->customers_model->count($where);
$series_value[] = $value ? $value : 1;
$max_total[] = $max ? ceil($max/$biz_count*5) : 10 ;
$max_total[] = $max ? ceil($max/$biz_count)*5 : 10 ;
//邀约能力
$where_max = $where = [
@@ -272,7 +272,7 @@ class Score extends Wxapp
$where['biz_id'] = $this->biz_id;
$value = $this->customers_model->count($where);
$series_value[] = $value ? $value : 1;
$max_total[] = $max ? ceil($max/$biz_count*5) : 10 ;
$max_total[] = $max ? ceil($max/$biz_count)*5 : 10 ;
//成交能力
$where_max = $where = [
@@ -285,7 +285,7 @@ class Score extends Wxapp
$where["biz_id"] = $this->biz_id;
$value = $this->orders_model->count($where);
$series_value[] = $value ? $value : 1;
$max_total[] = $max ? ceil($max/$biz_count*5) : 10 ;
$max_total[] = $max ? ceil($max/$biz_count)*5 : 10 ;
//交付能力
$where_max = $where = [
@@ -298,7 +298,7 @@ class Score extends Wxapp
$where["biz_id"] = $this->biz_id;
$value = $this->orders_model->count($where);
$series_value[] = $value ? $value : 1;
$max_total[] = $max ? ceil($max/$biz_count*5) : 10 ;
$max_total[] = $max ? ceil($max/$biz_count)*5 : 10 ;
foreach ($names as $key => $value) {
$indicator[] = array('name' => $value, 'max' => $max_total[$key]);