From f1077694a4a1d1abf25091e81cdd86510a1f1263 Mon Sep 17 00:00:00 2001 From: wenlele Date: Tue, 5 Sep 2023 16:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=96=AD=E6=8E=92=E5=90=8D=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E8=B6=85=E8=BF=8712=E4=B8=AA=E5=B0=8F=E6=97=B6?= =?UTF-8?q?=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/project/group.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/app/lib/controllers/project/group.js b/api/app/lib/controllers/project/group.js index 02fd38d..f47cd73 100644 --- a/api/app/lib/controllers/project/group.js +++ b/api/app/lib/controllers/project/group.js @@ -319,7 +319,8 @@ async function groupStatisticOnline (ctx) { const maxOfflineTimeRes = strucIdArr.length ? await models.StructureOff.findAll({ where: { structure: { $in: strucIdArr }, - state: 0 + state: 0, + offline: { $gt: 720 } } }) : []