From 6621900d6150a9f9da01fff03c8ad38d0cbdf3c0 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Wed, 2 Aug 2023 09:09:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/application/common/logic/PassFlow.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/application/common/logic/PassFlow.php b/source/application/common/logic/PassFlow.php index 3ea6c94..5c76846 100644 --- a/source/application/common/logic/PassFlow.php +++ b/source/application/common/logic/PassFlow.php @@ -473,9 +473,9 @@ class PassFlow $bw_data = []; foreach ($dateArr as $date => $granularity) { - $museumWhere = ' "groupId"='."'510'".' and "granularity" = ' . "'{$granularity}'" . ' and "date" = ' . "'{$date}'"; + $museumWhere = ' "groupId"='."'510'".' and "granularity" = ' . "'{$granularity}'" ; $museumWhere .= ' and "statTime" >= ' . "'{$dateData[$date]['start_time']}'" . ' and "statTime" <= ' . "'{$dateData[$date]['end_time']}'"; - $museumRes = $dm->find('bt_passenger_flow_all',$museumWhere,' SUM("flowInNum") as NUM'); + $museumRes = $dm->find('bt_passenger_flow',$museumWhere,' SUM("flowInNum") as NUM'); $bw_data[$date] = $museumRes['NUM'] ?: 0; } $bw_today_incount = isset($bw_data['day']) ? $bw_data['day'] : 0;