浏览代码

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

MaiXinRong 11 月之前
父节点
当前提交
1c6192e584
共有 2 个文件被更改,包括 2 次插入0 次删除
  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();