Browse Source

fix bug

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

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

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

Loading…
Cancel
Save