|
@@ -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;
|
|
|
}
|