diff --git a/api/app/lib/controllers/report/index.js b/api/app/lib/controllers/report/index.js index 2ddc449a..3baa64df 100644 --- a/api/app/lib/controllers/report/index.js +++ b/api/app/lib/controllers/report/index.js @@ -550,7 +550,7 @@ async function roadSpotPrepare (ctx) { let lastCounty = await models.RoadSpotCheckPreview.findAll({ where: { checked: true, - id: { $lt: lastSpotRes.id } + id: { $lte: lastSpotRes.id } }, limit: 3, order: [['date', 'DESC']], @@ -566,7 +566,7 @@ async function roadSpotPrepare (ctx) { let lastVillage = await models.RoadSpotCheckPreview.findAll({ where: { checked: true, - id: { $lt: lastSpotRes.id } + id: { $lte: lastSpotRes.id } }, limit: 9, order: [['date', 'DESC']],