Explorar o código

终审审批问题

MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
2de629e4b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;