Browse Source

标段缓存,台账审批退回相关

MaiXinRong 2 years ago
parent
commit
9607f8c203
2 changed files with 3 additions and 2 deletions
  1. 1 1
      app/service/ledger_audit.js
  2. 2 1
      app/service/tender_cache.js

+ 1 - 1
app/service/ledger_audit.js

@@ -404,7 +404,7 @@ module.exports = app => {
                         ledger_times: times + 1,
                         ledger_status: checkType,
                     });
-                    await this.ctx.service.tenderCache.updateLedgerCache(transaction, tenderId, checkType, checkType, { id: this.ctx.tender.user_id });
+                    await this.ctx.service.tenderCache.updateLedgerCache(transaction, tenderId, checkType, checkType, { audit_id: this.ctx.tender.data.user_id });
                     // 拷贝新一次审核流程列表
                     const auditors = await this.getAllDataByCondition({
                         where: { tender_id: tenderId, times },

+ 2 - 1
app/service/tender_cache.js

@@ -122,7 +122,7 @@ module.exports = app => {
             if (next) {
                 const info = await this.ctx.service.projectAccount.getAccountCacheData(next.audit_id);
                 info.status = checkType === auditConst.ledger.status.checkNo ? status : auditConst.ledger.status.uncheck;
-                data.ledger_flow_cur_uid = next.id;
+                data.ledger_flow_cur_uid = next.audit_id;
                 data.ledger_flow_cur_info = JSON.stringify(info);
             } else {
                 data.ledger_flow_cur_uid = 0;
@@ -221,6 +221,7 @@ module.exports = app => {
                 data.stage_flow_cur_info = JSON.parse(info);
             }
             data.stage_flow_cur_tp = JSON.stringify(tp);
+            console.log(data);
             await transaction.update(this.tableName, data);
         }