@ -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