From c1ced224d86e6f3ae6f4703a83f062bc0bcdcfa7 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Fri, 10 Mar 2023 13:47:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=B7=A1=E6=A3=80=E6=AC=A1=E6=95=B0?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/patrolManage/patrolRecord.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/patrolManage/patrolRecord.js b/api/app/lib/controllers/patrolManage/patrolRecord.js index f790006..4bb4ff2 100644 --- a/api/app/lib/controllers/patrolManage/patrolRecord.js +++ b/api/app/lib/controllers/patrolManage/patrolRecord.js @@ -229,7 +229,7 @@ async function addPatrolRecord (ctx, next) { where: { patrolPlanId: patrolPlanId } }); - const patrolCount = curPlanRecord.count; + const patrolCount = curPlanRecord.count + 1; await models.PatrolPlan.update({ patrolCount }, { where: { id: patrolPlanId }, transaction