Parcourir la source

台账历史问题

MaiXinRong il y a 3 ans
Parent
commit
529e3a3bfe
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 1 0
      app/service/ledger_revise.js
  2. 1 0
      app/service/revise_audit.js

+ 1 - 0
app/service/ledger_revise.js

@@ -199,6 +199,7 @@ module.exports = app => {
                     his_id,
                 });
                 await transaction.update(this.ctx.service.ledgerHistory.tableName, { id: his_id, valid: 0 });
+                if (revise.his_id > 0) await transaction.update(this.ctx.service.ledgerHistory.tableName, { id: revise.his_id, valid: 0 });
                 // 投资进度改变状态
                 await transaction.update(this.ctx.service.schedule.tableName, { revising: 0 }, { where: { tid: this.ctx.tender.id } });
                 await transaction.commit();

+ 1 - 0
app/service/revise_audit.js

@@ -511,6 +511,7 @@ module.exports = app => {
                         a.in_time = time;
                     }
                     await transaction.insert(this.tableName, auditors);
+                    await transaction.update(this.ctx.service.ledgerHistory.tableName, { id: revise.his_id, valid: 0 });
 
                     // 短信通知-审批退回提醒功能
                     // 下一人