MaiXinRong %!s(int64=4) %!d(string=hai) anos
pai
achega
e84de2e69f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/service/stage_bills.js

+ 2 - 0
app/service/stage_bills.js

@@ -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) {