Browse Source

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

MaiXinRong 11 tháng trước cách đây
mục cha
commit
1c6192e584
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  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();