Pārlūkot izejas kodu

修复上移bug

laiguoran 3 gadi atpakaļ
vecāks
revīzija
561331add6
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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) {