From d0ff2a74bfb7ac580c58bacb59cd687dc1bdf88c Mon Sep 17 00:00:00 2001 From: wenlele Date: Thu, 21 Dec 2023 22:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E6=9F=A5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/report/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']],