소스 검색

截止本期数据问题

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

+ 1 - 1
app/service/stage_bills_final.js

@@ -85,7 +85,7 @@ module.exports = app => {
             }
             if (stage.order > 1) {
                 const cur = await this.ctx.service.stageBills.getLastestStageData(tender.id, stage.id);
-                if (!cur || cur.length === 0) return;
+                //if (!cur || cur.length === 0) return;
                 const pre = await this.getFinalData(tender, stage.order - 1);
                 for (const c of cur) {
                     delete c.id;

+ 1 - 1
app/service/stage_pos_final.js

@@ -69,7 +69,7 @@ module.exports = app => {
             }
             if (stage.order > 1) {
                 const cur = await this.ctx.service.stagePos.getLastestStageData2(tender.id, stage.id);
-                if (!cur || cur.length === 0) return;
+                //if (!cur || cur.length === 0) return;
                 const pre = await this.getFinalData(tender, stage.order - 1);
                 for (const c of cur) {
                     delete c.id;