Browse Source

台账修订,修订前台账数据记录问题

MaiXinRong 3 years ago
parent
commit
d9cd2bebdd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/ledger_history.js

+ 1 - 1
app/service/ledger_history.js

@@ -29,7 +29,7 @@ module.exports = app => {
          */
         async getLatestHistory(tid) {
             const his = await this.db.select(this.tableName, {
-                where: { tid },
+                where: { tid, valid: 1 },
                 orders: [['in_time', 'desc']],
                 limit: 1, offset: 0,
             });