Browse Source

终审审批问题

MaiXinRong 5 năm trước cách đây
mục cha
commit
2de629e4b8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;