|
@@ -507,6 +507,8 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
const his = await this.ctx.service.sumLoadHistory.saveStageHistory(this.ctx.tender.id, this.ctx.stage.id, lid, tenders, result.errors);
|
|
|
+ if (updateStageBills.length > 0) await conn.updateRows(this.tableName, updateStageBills);
|
|
|
+ if (insertStageBills.length > 0) await conn.insert(this.tableName, insertStageBills);
|
|
|
await conn.commit();
|
|
|
return { curStageData: result.update, sumLoadHis: his };
|
|
|
} catch (err) {
|