Browse Source

修复变更新增部位bug

laiguoran 3 years ago
parent
commit
784ab54e62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/change_audit_list.js

+ 1 - 1
app/service/change_audit_list.js

@@ -829,7 +829,7 @@ module.exports = app => {
 
 
         async _findParents(transaction, tid, id, result) {
         async _findParents(transaction, tid, id, result) {
             const info = await transaction.get(this.ctx.service.changeLedger.tableName, { tender_id: tid, ledger_id: id });
             const info = await transaction.get(this.ctx.service.changeLedger.tableName, { tender_id: tid, ledger_id: id });
-            if (info && this._.findIndex(result, { ledger_id: info.id }) === -1) {
+            if (info && this._.findIndex(result, { ledger_id: info.ledger_id }) === -1) {
                 result.push(info);
                 result.push(info);
                 await this._findParents(transaction, tid, info.ledger_pid, result);
                 await this._findParents(transaction, tid, info.ledger_pid, result);
             } else {
             } else {