Browse Source

台账流程,移除审批人相关

MaiXinRong 11 months ago
parent
commit
1c6192e584
2 changed files with 2 additions and 0 deletions
  1. 1 0
      app/service/ledger_audit.js
  2. 1 0
      app/service/revise_audit.js

+ 1 - 0
app/service/ledger_audit.js

@@ -442,6 +442,7 @@ module.exports = app => {
                 if (!auditor) {
                     throw '该审核人不存在';
                 }
+                await transaction.delete(this.tableName, { tid: tenderId, audit_order: auditor.audit_order, times});
                 await this._syncOrderByDelete(transaction, tenderId, auditor.audit_order, times);
                 await transaction.delete(this.tableName, condition);
                 await transaction.commit();

+ 1 - 0
app/service/revise_audit.js

@@ -420,6 +420,7 @@ module.exports = app => {
                 if (!auditor) {
                     throw '该审核人不存在';
                 }
+                await transaction.delete(this.tableName, { rid: revise.id, audit_order: auditor.audit_order, times });
                 await this._syncOrderByDelete(transaction, revise.id, auditor.audit_order, times);
                 await transaction.delete(this.tableName, condition);
                 await transaction.commit();