Browse Source

问题修复

master
liujiangyong 2 years ago
parent
commit
02cc6be9d3
  1. 2
      api/app/lib/controllers/patrolManage/patrolRecord.js

2
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;

Loading…
Cancel
Save