Просмотр исходного кода

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

MaiXinRong 3 лет назад
Родитель
Сommit
d9cd2bebdd
1 измененных файлов с 1 добавлено и 1 удалено
  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,
             });