Browse Source

缓存相关

MaiXinRong 1 year ago
parent
commit
253aca4ccd
2 changed files with 1 additions and 2 deletions
  1. 0 1
      app/service/stage_pay.js
  2. 1 1
      app/service/tender_cache.js

+ 0 - 1
app/service/stage_pay.js

@@ -144,7 +144,6 @@ module.exports = app => {
             const stagePays = [];
             const prePays = await this.getStageLastestPays(preStage);
             for (const pp of prePays) {
-                console.log(pp);
                 const p = this._.find(pays, {id: pp.pid});
                 if (!p.valid) continue;
                 stagePays.push({

+ 1 - 1
app/service/tender_cache.js

@@ -302,7 +302,7 @@ module.exports = app => {
 
             const orgCache = await this.getDataById(stage.tid);
 
-            const data = { id: stage.tid, stage_status: auditConst.stage.status.uncheck, stage_complete_count: stage.order };
+            const data = { id: stage.tid, stage_status: auditConst.stage.status.uncheck, stage_complete_count: stage.order, stage_count: stage.order + 1 };
             if (ledgerTp) data.ledger_tp = JSON.stringify(ledgerTp);
             const tp = orgCache.stage_flow_cur_tp ? JSON.parse(orgCache.stage_flow_cur_tp) : (orgCache.stage_flow_pre_tp ? JSON.parse(orgCache.stage_flow_pre_tp) : {});
             if (stageTp) this._.assign(tp, stageTp);