MaiXinRong 1 year atrás
parent
commit
81cb1d7a75
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/service/rpt_gather_memory.js

+ 3 - 3
app/service/rpt_gather_memory.js

@@ -1288,11 +1288,11 @@ module.exports = app => {
             if (!gsDefine || !gsDefine.enable) return [];
             if (!gsCustom || !gsCustom.tenders || gsCustom.tenders.length === 0) return [];
 
-            const result = { mem_gather_advance_pay: [] };
+            const result = [];
             for (const t of gsCustom.tenders) {
                 // const tender = await this.ctx.service.tender.getCheckTender(t.tid);
-                const advance_pay = await this.ctx.service.advance.getAllDataByCondition({ where: { tid: params.tender_id } };
-                result.mem_gather_advance_pay.push(...advance_pay);
+                const advance_pay = await this.ctx.service.advance.getAllDataByCondition({ where: { tid: t.tid } });
+                result.push(...advance_pay);
             }
             return result;
         }