Browse Source

巡检记录接口修改

master
xincheng 2 years ago
parent
commit
34bcf5c27d
  1. 4
      api/app/lib/controllers/patrolRecord/patrolRecord.js

4
api/app/lib/controllers/patrolRecord/patrolRecord.js

@ -40,7 +40,7 @@ async function findPatrolRecord(ctx, next) {
}); });
} }
rslt = pointId.split(',').map(i => { rslt = pointId.split(',').map(i => {
return a.filter(t => t.pointId === i).sort((a, b) => b.id - a.id)[0] || null return a.filter(t => t.pointId == i).sort((a, b) => b.id - a.id)[0] || null
}) })
} }
} else { } else {
@ -69,7 +69,7 @@ async function findPatrolRecord(ctx, next) {
} }
rslt = pointId.split(',').map(i => { rslt = pointId.split(',').map(i => {
return a.filter(t => t.pointId === i).sort((a, b) => b.id - a.id)[0] || null return a.filter(t => t.pointId == i).sort((a, b) => b.id - a.id)[0] || null
}) })
} }
} }

Loading…
Cancel
Save