diff --git a/api/controllers/wxapp/licheb/Score.php b/api/controllers/wxapp/licheb/Score.php index aaea07e7..aea5b468 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 ? 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]);