|
|
@ -3,7 +3,6 @@ |
|
|
namespace app\common\logic; |
|
|
namespace app\common\logic; |
|
|
|
|
|
|
|
|
use app\common\dm\Dm; |
|
|
use app\common\dm\Dm; |
|
|
use app\common\model\Pass; |
|
|
|
|
|
|
|
|
|
|
|
class PassFlow |
|
|
class PassFlow |
|
|
{ |
|
|
{ |
|
|
@ -195,7 +194,7 @@ class PassFlow |
|
|
foreach ($data as $groupId => $val) { |
|
|
foreach ($data as $groupId => $val) { |
|
|
$proportion = $val['allEnter'] > 0 ? round($val['allEnter']/$threshold,2) : 0; |
|
|
$proportion = $val['allEnter'] > 0 ? round($val['allEnter']/$threshold,2) : 0; |
|
|
$val['proportion'] = ($proportion * 100) . "%"; |
|
|
$val['proportion'] = ($proportion * 100) . "%"; |
|
|
$val['congestion'] = Pass::getPassType($proportion); |
|
|
$val['congestion'] = self::getPassType($proportion); |
|
|
$val['groupId'] = $groupId; |
|
|
$val['groupId'] = $groupId; |
|
|
|
|
|
|
|
|
$getGroup = $dm->find('bt_passenger_monitor_group',' "groupId" = ' . "'{$groupId}'"); |
|
|
$getGroup = $dm->find('bt_passenger_monitor_group',' "groupId" = ' . "'{$groupId}'"); |
|
|
|