소스 검색

台账修订,更新缓存相关

MaiXinRong 2 년 전
부모
커밋
1238e72a8c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/tender_cache.js

+ 1 - 1
app/service/tender_cache.js

@@ -228,7 +228,7 @@ module.exports = app => {
         async updateStageCache4Revise(transaction, tid, ledgerTp, pcTp) {
             const orgCache = await this.getDataById(tid);
             const data = { id: tid };
-            if (ledgerTp) data.ledger_tp = JSON.parse(ledgerTp);
+            if (ledgerTp) data.ledger_tp = JSON.stringify(ledgerTp);
             if (data.stage_status !== auditConst.stage.status.checked && pcTp) {
                 const curTp = JSON.parse(orgCache.stage_flow_cur_tp);
                 this._.assign(curTp, pcTp);