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;