This commit is contained in:
lin fan
2024-11-22 17:20:43 +08:00
parent 01d0907bfc
commit 45e91dc45a
+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 > $biz_count ? 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 > $biz_count ? 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 > $biz_count ? 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 > $biz_count ? 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 > $biz_count ? ceil($max/$biz_count)*5 : 10 ;
foreach ($names as $key => $value) {
$indicator[] = array('name' => $value, 'max' => $max_total[$key]);