From 51b07fe24558982500dd2e629db1b1645fbca319 Mon Sep 17 00:00:00 2001 From: lin fan Date: Thu, 21 Nov 2024 17:05:28 +0800 Subject: [PATCH] 1 --- api/controllers/wxapp/licheb/Score.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/controllers/wxapp/licheb/Score.php b/api/controllers/wxapp/licheb/Score.php index 5a4b38d3..1a19c0d9 100644 --- a/api/controllers/wxapp/licheb/Score.php +++ b/api/controllers/wxapp/licheb/Score.php @@ -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 ? round($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 ? round($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 ? round($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 ? round($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 ? round($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]);