diff --git a/source/application/common/logic/PassFlow.php b/source/application/common/logic/PassFlow.php index 7d34a47..3a1225c 100644 --- a/source/application/common/logic/PassFlow.php +++ b/source/application/common/logic/PassFlow.php @@ -368,7 +368,7 @@ class PassFlow } $libData = $dm->select('bt_library',['group_id' => ['baz001','BAF055']]); foreach ($libData as $libRow) { - $holdValue = $libRow['today_incount'] - $libRow['today_outcount']; + $holdValue = abs($libRow['today_incount'] - $libRow['today_outcount']); $libProportion = $holdValue > 0 ? round($holdValue/$groupThreshold[$libRow['group_id']],4) : 0; // 文化馆排 4# 图书馆 2# $isort = $libRow['group_id']=='baz001'?2:4;