From 02cc6be9d32710a387354fe0ae9041ac211548eb Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Tue, 21 Mar 2023 09:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/patrolManage/patrolRecord.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/patrolManage/patrolRecord.js b/api/app/lib/controllers/patrolManage/patrolRecord.js index 4dcf503..7b4045c 100644 --- a/api/app/lib/controllers/patrolManage/patrolRecord.js +++ b/api/app/lib/controllers/patrolManage/patrolRecord.js @@ -242,7 +242,7 @@ async function addPatrolRecord(ctx, next) { let isComplete = true; for (const p of curPatrolPlan.points) { if (!groupRecord[p.id]) { - if (curPatrolPlan.points.length === 1 && frequency === 1) { + if (pointId === p.id && frequency === 1) { continue; } else { isComplete = false;