|
|
@ -40,7 +40,7 @@ async function findPatrolRecord(ctx, next) { |
|
|
|
}); |
|
|
|
} |
|
|
|
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 { |
|
|
@ -69,7 +69,7 @@ async function findPatrolRecord(ctx, next) { |
|
|
|
} |
|
|
|
|
|
|
|
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 |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|