MaiXinRong 3 年 前
コミット
e1c9d056ff
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/service/stage_change.js

+ 1 - 1
app/service/stage_change.js

@@ -339,7 +339,7 @@ module.exports = app => {
             const transaction = await this.db.beginTransaction();
             try {
                 if (newChanges.length > 0) await transaction.insert(this.tableName, newChanges);
-                if (updateChanges.length > 0) await transaction.updateRows(this.tableName, updateChange);
+                if (updateChanges.length > 0) await transaction.updateRows(this.tableName, updateChanges);
                 const stageBills = await this.ctx.service.stageBills.getLastestStageData2(this.ctx.tender.id, this.ctx.stage.id, bills.id);
                 const sbUpdate = noValue
                     ? { qc_minus_qty: billsQty }