Browse Source

截止本期数据问题

MaiXinRong 5 years ago
parent
commit
b9a998280c
2 changed files with 2 additions and 2 deletions
  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;