Browse Source

修复上移bug

laiguoran 3 years ago
parent
commit
561331add6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/service/change_ledger.js

+ 1 - 0
app/service/change_ledger.js

@@ -597,6 +597,7 @@ module.exports = app => {
                 if (!this.newBills) {
                     await this.transaction.update(this.ctx.service.ledger.tableName, { id: pre.id, order: pre[this.setting.order] + count });
                 }
+                order.push(pre[this.setting.order] + count);
                 await this.transaction.commit();
                 this.transaction = null;
             } catch (err) {