Browse Source

fix bug

master
liujiangyong 2 years ago
parent
commit
953a86dd11
  1. 4
      api/app/lib/controllers/patrolManage/patrolPlan.js

4
api/app/lib/controllers/patrolManage/patrolPlan.js

@ -102,12 +102,8 @@ async function updatePatrolPlan (ctx, next) {
let isComplete = true; let isComplete = true;
for (const p of points) { for (const p of points) {
if (!groupRecord[p.id]) { if (!groupRecord[p.id]) {
if (points.length === 1 && frequencyNum === 1) {
continue;
} else {
isComplete = false; isComplete = false;
continue; continue;
}
} else { } else {
if ((groupRecord[p.id].length) < frequencyNum) { if ((groupRecord[p.id].length) < frequencyNum) {
isComplete = false; isComplete = false;

Loading…
Cancel
Save