MaiXinRong před 3 roky
rodič
revize
bdd9476701
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      app/controller/stage_controller.js

+ 3 - 2
app/controller/stage_controller.js

@@ -283,8 +283,9 @@ module.exports = app => {
         async _getStagePosData(ctx, posColumn) {
             let curStageData,
                 preStageData;
-            // const posData = await ctx.service.pos.getAllDataByCondition({ where: { tid: ctx.tender.id } });
-            const posData = await ctx.service.pos.getAllDataByCondition({ columns: posColumn, where: { tid: ctx.tender.id } });
+            const posData =  ctx.stage.ledgerHis
+                ? await ctx.service.ledger.loadDataFromOss(ctx.tender.id, ctx.stage.ledgerHis.pos_file)
+                : await ctx.service.pos.getAllDataByCondition({ columns: posColumn, where: { tid: ctx.tender.id } });
             // 根据当前人,或指定对象查询数据
             // console.time('cur');
             if (ctx.stage.readOnly) {