Browse Source

终审审批问题

MaiXinRong 5 years ago
parent
commit
2de629e4b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/stage_bills_final.js

+ 1 - 1
app/service/stage_bills_final.js

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